From dfa339276ba33417567d19a42214ecad50d68992 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Wed, 29 Feb 2012 13:50:21 +0000 Subject: bugfix: . matches umlaut in utf-8 mode --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 1382073..36bc903 100644 --- a/it.class +++ b/it.class @@ -341,7 +341,7 @@ static function convertregex($pattern, $p = null) static function match($pattern, $string, $p = null) { if (!preg_match('/\\\\[wb]|[!\x80-\xff]|\[\[:/i', $pattern) && !$p) - $r = preg_match('!' . $pattern . '!i', $string, $m); # fast path for simple patterns + $r = preg_match('!' . $pattern . '!i' . (ini_get('default_charset') == 'utf-8' ? 'u' : ''), $string, $m); # fast path for simple patterns else { $flags = $p['offset_capture'] ? PREG_OFFSET_CAPTURE : 0; -- cgit v1.2.3