]> granicus.if.org Git - transmission/commitdiff
(trunk, web) fix #5055 'torrents that include HTML in the comment section don't displ...
authorJordan Lee <jordan@transmissionbt.com>
Fri, 5 Oct 2012 02:23:17 +0000 (02:23 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 5 Oct 2012 02:23:17 +0000 (02:23 +0000)
web/javascript/inspector.js

index bc63cd2eb1cb819c28680d949148925009aeb61d..f83f66131b27bc5fcefab4b00ad7e9b174c7bbd0 100644 (file)
@@ -404,7 +404,7 @@ function Inspector(controller) {
         }
         if(!str)
             str = none;  
-        setTextContent(e.comment_lb, str.replace(/(https?|ftp):\/\/([\w\-]+(\.[\w\-]+)*(\.[a-z]{2,4})?)(\d{1,5})?(\/([^<>\s]*))?/g, '<a target="_blank" href="$&">$&</a>'));
+        setTextContent(e.comment_lb, str);
 
         //
         //  origin