]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1355100 - Add rel=nofollow to all external links in bug comments
authorSebastin Santy <sebastinssanty@gmail.com>
Fri, 21 Apr 2017 18:08:47 +0000 (23:38 +0530)
committerDylan William Hardison <dylan@hardison.net>
Wed, 26 Apr 2017 17:20:34 +0000 (13:20 -0400)
Refer https://support.google.com/webmasters/answer/96569\?hl\=en

Bugzilla/Template.pm

index 9cac9ad877d22ce482e927f7148c865186213dbf..65396b96d33942d464f03fbe3431b378b09845a1 100644 (file)
@@ -200,7 +200,7 @@ sub quoteUrls {
     my $safe_protocols = SAFE_URL_REGEXP();
     $text =~ s~\b($safe_protocols)
               ~($tmp = html_quote($1)) &&
-               ($things[$count++] = "<a href=\"$tmp\">$tmp</a>") &&
+               ($things[$count++] = "<a rel=\"nofollow\" href=\"$tmp\">$tmp</a>") &&
                ("\x{FDD2}" . ($count-1) . "\x{FDD3}")
               ~egox;