mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user