diff --git a/AbuseFilter.parser.php b/AbuseFilter.parser.php index 0a6445827..3f6e0f434 100644 --- a/AbuseFilter.parser.php +++ b/AbuseFilter.parser.php @@ -1587,6 +1587,7 @@ class AbuseFilterParser { } public static function regexErrorHandler( $errno, $errstr, $errfile, $errline, $context ) { + if ( error_reporting() == 0 ) { return true; } throw new AFPUserVisibleException( 'regexfailure', $context['pos'], array( $errstr, $context['regex'] ) ); return true;