r36762 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36761‎ | r36762 | r36763 >
Date:04:11, 28 June 2008
Author:werdna
Status:old
Tags:
Comment:
Also allow spaces, newlines, tabs to be ignored when processing rules
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php
@@ -173,7 +173,7 @@
174174 }
175175
176176 // Ignore whitespace.
177 - if ($char != ' ') {
 177+ if ($char != ' ' && $char != "\n" && $char != "\t") {
178178 $lastChar = $char;
179179 }
180180 }

Status & tagging log