http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73903
Revision: 73903 Author: platonides Date: 2010-09-28 15:26:00 +0000 (Tue, 28 Sep 2010) Log Message: ----------- Import of ArticleComments v0.4 by Jim R. Wilson from http://jimbojw.com/wiki/index.php?title=ArticleComments&oldid=2103 (small tweak to rudimentary spam protection) Modified Paths: -------------- trunk/extensions/ArticleComments/ArticleComments.php Modified: trunk/extensions/ArticleComments/ArticleComments.php =================================================================== --- trunk/extensions/ArticleComments/ArticleComments.php 2010-09-28 15:25:05 UTC (rev 73902) +++ trunk/extensions/ArticleComments/ArticleComments.php 2010-09-28 15:26:00 UTC (rev 73903) @@ -94,6 +94,7 @@ /** * Echos out a comment form depending on the page action and namespace. + * @param mixed $nsList An Namespace (int) or array of such values for which this method will dispaly the form. * @param Title $title The title of the article on which the form will appear. * @param Array $params A hash of parameters containing rendering options. */ @@ -452,7 +453,7 @@ # Rudimentary spam protection $spampatterns = array( '%\\[url=(https?|ftp)://%smi', - '%<a\\s+[^>]*href\\s*=\\s*[\'"]?(https?|ftp)://%smi' + '%<a\\s+[^>]*href\\s*=\\s*[\'"]?\\s*(https?|ftp)://%smi' ); foreach ($spampatterns as $sp) { foreach (array($comment, $commenterName, $commenterURL) as $field) { _______________________________________________ MediaWiki-CVS mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
