]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 194290: irc:// links are not highlighted as links. Adds irc
authorkiko%async.com.br <>
Thu, 15 Jan 2004 02:07:32 +0000 (02:07 +0000)
committerkiko%async.com.br <>
Thu, 15 Jan 2004 02:07:32 +0000 (02:07 +0000)
to the list of supported protocols in quoteUrls(). Patch by Emmanuel
Bourg <smanux@lfjr.net>, r=kiko, a=justdave.

globals.pl

index 17499063474331e42dbaf773dd0b64ad077aa887..b5f3b7e36d37e93dec498f4d7264a091fc0e95d8 100644 (file)
@@ -888,7 +888,7 @@ sub quoteUrls {
     my $tmp;
 
     # non-mailto protocols
-    my $protocol_re = qr/(afs|cid|ftp|gopher|http|https|mid|news|nntp|prospero|telnet|view-source|wais)/i;
+    my $protocol_re = qr/(afs|cid|ftp|gopher|http|https|irc|mid|news|nntp|prospero|telnet|view-source|wais)/i;
 
     $text =~ s~\b(${protocol_re}:  # The protocol:
                   [^\s<>\"]+       # Any non-whitespace