1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

(trunk, web) fix #5055 'torrents that include HTML in the comment section don't display properly in the web browser.'

This commit is contained in:
Jordan Lee 2012-10-05 02:23:17 +00:00
parent 126583ba85
commit ed2d2de530

View file

@ -404,7 +404,7 @@ function Inspector(controller) {
} }
if(!str) if(!str)
str = none; 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 // origin