mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
f4f1921fc6
commit
881b550dec
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ function parse_comment($comment) {
|
||||||
if ($i % 2) {
|
if ($i % 2) {
|
||||||
# convert links
|
# convert links
|
||||||
$html .= '<a href="' . htmlspecialchars($matches[$i]) .
|
$html .= '<a href="' . htmlspecialchars($matches[$i]) .
|
||||||
'">' . htmlspecialchars($matches[$i]) . '</a>';
|
'" rel="nofollow">' . htmlspecialchars($matches[$i]) . '</a>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# convert everything else
|
# convert everything else
|
||||||
|
|
Loading…
Add table
Reference in a new issue