Commit 881b550d authored by Daniel Micay's avatar Daniel Micay Committed by Lukas Fleischer
Browse files

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: default avatarDaniel Micay <danielmicay@gmail.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent f4f1921f
......@@ -595,7 +595,7 @@ function parse_comment($comment) {
if ($i % 2) {
# convert links
$html .= '<a href="' . htmlspecialchars($matches[$i]) .
'">' . htmlspecialchars($matches[$i]) . '</a>';
'" rel="nofollow">' . htmlspecialchars($matches[$i]) . '</a>';
}
else {
# convert everything else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment