[aur-dev] [PATCH] use rel="nofollow" for links in comments
Daniel Micay
danielmicay at gmail.com
Sun Jul 12 15:46:44 UTC 2015
This removes the incentive for spammers to post links by asking search
engines to ignore them.
Signed-off-by: Daniel Micay <danielmicay at gmail.com>
---
web/lib/aur.inc.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 .= '<a href="' . htmlspecialchars($matches[$i]) .
- '">' . htmlspecialchars($matches[$i]) . '</a>';
+ '" rel="nofollow">' . htmlspecialchars($matches[$i]) . '</a>';
}
else {
# convert everything else
--
2.4.5
More information about the aur-dev
mailing list