Changes between Version 2 and Version 3 of Ticket #3171, comment 6


Ignore:
Timestamp:
Apr 26, 2010, 4:37:11 AM (7 years ago)
Author:
dairinin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3171, comment 6

    v2 v3  
    55About #1188, here is screenshot of Firefox with patch applied. Looks fine for me. IE8 and all Operas look the same way. If the problem exist with any browser, I think we should handle comments carefully and detect URLs. If so, we could even make real links from them instead of plain text, like rutorrent does. Something like this:
    66{{{
    7 urls = comment.match ("(http|ftp|mailto)://[^ ]+");
     7urls = comment.match ("(https?://|ftps?://|mailto:)[^ ]+");
    88for (i=0; i<urls.length; i+=2)
    99   comment = comment.substr (0, comment.indexOf (urls[i])) + "<a href=\"" + urls[i] + "\">" + u