[aur-dev] [PATCH] 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 <danielmicay@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
On Sun, 12 Jul 2015 at 17:46:44, Daniel Micay wrote:
This removes the incentive for spammers to post links by asking search engines to ignore them.
Signed-off-by: Daniel Micay <danielmicay@gmail.com> --- web/lib/aur.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) [...]
Applied, thanks!
participants (2)
-
Daniel Micay
-
Lukas Fleischer