]> granicus.if.org Git - transmission/commitdiff
(trunk web) allow file names to break on \ _ or .
authorKevin Glowacz <kevin@glowacz.info>
Sun, 24 May 2009 22:45:41 +0000 (22:45 +0000)
committerKevin Glowacz <kevin@glowacz.info>
Sun, 24 May 2009 22:45:41 +0000 (22:45 +0000)
web/javascript/torrent.js

index 42a28ef44e921be474ead57f822141afb9b3b6df..95dffdd7321b3a9ff9b24c96ddac5c2074801bc3 100644 (file)
@@ -667,7 +667,7 @@ TorrentFile.prototype = {
 
                var file_div = document.createElement('div');
                file_div.className = "inspector_torrent_file_list_entry_name";
-               file_div.textContent = this.name;
+               file_div.innerHTML = this.name.replace(/([\/_\.])/g, "$1&#8203;");
 
                var prog_div = document.createElement('div');
                prog_div.className = "inspector_torrent_file_list_entry_progress";