http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73906
Revision: 73906 Author: platonides Date: 2010-09-28 15:28:34 +0000 (Tue, 28 Sep 2010) Log Message: ----------- Import of ArticleComments v0.4.1 by Jim R. Wilson from http://jimbojw.com/wiki/index.php?title=ArticleComments&oldid=2532 (ver 0.4.1 release) Modified Paths: -------------- trunk/extensions/ArticleComments/ArticleComments.php Modified: trunk/extensions/ArticleComments/ArticleComments.php =================================================================== --- trunk/extensions/ArticleComments/ArticleComments.php 2010-09-28 15:27:18 UTC (rev 73905) +++ trunk/extensions/ArticleComments/ArticleComments.php 2010-09-28 15:28:34 UTC (rev 73906) @@ -2,7 +2,7 @@ /* * ArticleComments.php - A MediaWiki extension for adding comment sections to articles. * @author Jim R. Wilson - * @version 0.4 + * @version 0.4.1 * @copyright Copyright (C) 2007 Jim R. Wilson * @license The MIT License - http://www.opensource.org/licenses/mit-license.php * ----------------------------------------------------------------------- @@ -22,6 +22,8 @@ * <comments /> * Note: Typically this would be placed at the end of the article text. * Version Notes: + * version 0.4.1: + * Updated default spam filtering code. (now matches <a> tags in commenterName) * version 0.4: * Updated default spam filtering code. * Abstracted Spam filter via hook (ArticleCommentsSpamCheck) to aid future spam checkers @@ -71,7 +73,7 @@ 'author'=>'Jim R. Wilson - wilson.jim.r <at> gmail.com', 'url'=>'http://jimbojw.com/wiki/index.php?title=ArticleComments', 'description'=>'Enables comment sections on article pages.', - 'version'=>'0.4' + 'version'=>'0.4.1' ); # Add Extension Functions @@ -264,7 +266,7 @@ function setupSpecialProcessComment() { global $IP, $wgMessageCache; require_once($IP.'/includes/SpecialPage.php'); - SpecialPage::addPage(new SpecialPage('ProcessComment', '', false, 'specialProcessComment', false)); + SpecialPage::addPage(new SpecialPage('ProcessComment', '', true, 'specialProcessComment', false)); # Messages used in this extension $wgMessageCache->addMessage('article-comments-title-field', 'Title'); @@ -462,6 +464,7 @@ # Check for bad input for commenterName (seems to be a popular spam location) $spampatterns = array( + '%<a\\s+%smi', '%(https?|ftp)://%smi', '%(\\n|\\r)%smi' ); _______________________________________________ MediaWiki-CVS mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
