From 881b550dec07fbfbebea2229a6667bcc37eef0f2 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 12 Jul 2015 11:46:44 -0400 Subject: use rel="nofollow" for links in comments This removes the incentive for spammers to post links by asking search engines to ignore them. Signed-off-by: Daniel Micay Signed-off-by: Lukas Fleischer --- web/lib/aur.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 7a455c6..b410db5 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -595,7 +595,7 @@ function parse_comment($comment) { if ($i % 2) { # convert links $html .= '' . htmlspecialchars($matches[$i]) . ''; + '" rel="nofollow">' . htmlspecialchars($matches[$i]) . ''; } else { # convert everything else -- cgit v1.2.3-70-g09d2