cvs: php-gtk-web /wiki index.php
| From: | Christian Weiske | Date: | Sat, 12 Nov 2005 08:42:33 +0000 |
| Subject: | cvs: php-gtk-web /wiki index.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2863@lists.php.net to get a copy of this message | ||
cweiske Sat Nov 12 03:42:33 2005 EDT
Modified files:
/php-gtk-web/wiki index.php
Log:
Added rel="nofollow" to external urls to give spammers
a reason not to spam the wiki
See:
http://googleblog.blogspot.com/2005/01/preventing-comment-spam.html
http://cvs.php.net/diff.php/php-gtk-web/wiki/index.php?r1=1.1&r2=1.2&ty=u
Index: php-gtk-web/wiki/index.php
diff -u php-gtk-web/wiki/index.php:1.1 php-gtk-web/wiki/index.php:1.2
--- php-gtk-web/wiki/index.php:1.1 Thu Jul 22 21:31:35 2004
+++ php-gtk-web/wiki/index.php Sat Nov 12 03:42:31 2005
@@ -119,7 +119,7 @@
"<span class='createlink'>\$LinkText</span><a
class='createlink' href='\$PageUrl?action=edit'>?</a>";
$WikiWordCountMax = 1000000;
$WikiWordCount['PmWiki'] = 1;
-$UrlLinkFmt = "<a class='urllink'
href='\$Url'>\$LinkText</a>";
+$UrlLinkFmt = "<a class='urllink' href='\$Url'
rel='nofollow'>\$LinkText</a>";
$UrlImgFmt = "<img src='\$Url' border='0' alt=''
img>";
$GroupNamePattern="[[:upper:]][[:alnum:]]+";
$WikiWordPattern="[[:upper:]][[:alnum:]]*(?:[[:upper:]][[:lower:]0-9]|[[:lower:]0-9][[:upper:]])[[:alnum:]]*";