diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -350,7 +350,7 @@ static function convertregex($pattern, $p = array()) */ static function match($pattern, $string, $p = null) { - if (!preg_match('/\\\\[wb]|[!\x80-\xff]/i', $pattern) && !$p) + if (!preg_match('/\\\\[wb]|[!\x80-\xff]|\[\[:/i', $pattern) && !$p) $r = preg_match('!' . $pattern . '!i', $string, $m); # fast path for simple patterns else { @@ -369,7 +369,7 @@ static function match($pattern, $string, $p = null) if (!$r) # no match { - if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) # Silence phpversionlint.php commit hook: function_exists('preg_last_error') + if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) it::error("Exceeded pcre.backtrack_limit of " . ini_get('pcre.backtrack_limit') . " bytes"); $result = $p['all'] ? array() : null; |