r52047 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52046‎ | r52047 | r52048 >
Date:11:38, 17 June 2009
Author:werdna
Status:ok
Tags:
Comment:
Fix regex error handling by returning immediately if error reporting is disabled.
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.parser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.parser.php
@@ -1587,6 +1587,7 @@
15881588 }
15891589
15901590 public static function regexErrorHandler( $errno, $errstr, $errfile, $errline, $context ) {
 1591+ if ( error_reporting() == 0 ) { return true; }
15911592 throw new AFPUserVisibleException( 'regexfailure', $context['pos'],
15921593 array( $errstr, $context['regex'] ) );
15931594 return true;

Status & tagging log