r100691 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100690‎ | r100691 | r100692 >
Date:12:12, 25 October 2011
Author:hashar
Status:ok
Tags:
Comment:
revert r100687
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php
@@ -29,14 +29,11 @@
3030 $oldtext = '';
3131
3232 if ( $editor->mArticle->exists() ) {
33 - // Fetch text which might be an old revision
3433 $oldtext = $editor->mArticle->getContent();
3534 }
3635
37 - if ( $editor->mArticle->isCurrent() && strcmp( $oldtext, $text ) == 0) {
38 - // Do not trigger if used text was the latest in the database and user
39 - // submitted text does not introduce any difference.
40 - // See bugs 19267 & 31656.
 36+ if ( strcmp( $oldtext, $text ) == 0 ) {
 37+ // Don't trigger for null edits.
4138 return true;
4239 }
4340

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100687(bug 31656) AbuseFilter skips non null edits...hashar10:22, 25 October 2011

Status & tagging log