This removes the incentive for spammers to post links by asking search
engines to ignore them.

Signed-off-by: Daniel Micay <[email protected]>
---
 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

Reply via email to