Changeset 13543


Ignore:
Timestamp:
Oct 5, 2012, 2:23:17 AM (9 years ago)
Author:
jordan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/inspector.js

    r13524 r13543  
    405405        if(!str)
    406406            str = none; 
    407         setTextContent(e.comment_lb, str.replace(/(https?|ftp):\/\/([\w\-]+(\.[\w\-]+)*(\.[a-z]{2,4})?)(\d{1,5})?(\/([^<>\s]*))?/g, '<a target="_blank" href="$&">$&</a>'));
     407        setTextContent(e.comment_lb, str);
    408408
    409409        //
Note: See TracChangeset for help on using the changeset viewer.