summaryrefslogtreecommitdiffstats
path: root/system/core/Utf8.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-15 17:37:01 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-15 17:37:01 +0100
commit08fef7de41cb06785cdb1024769892d9510e6e6b (patch)
treea261799206ceb67124896c11b4b61b13eb726a83 /system/core/Utf8.php
parentd8b1ad31cf7ee205ddf3cf396b1d1bfa45af49fa (diff)
Fix #2799 by adding conditional PCRE UTF-8 support to CI_URI::filter_uri()
Also did a tiny micro-optimization in the Utf8 class.
Diffstat (limited to 'system/core/Utf8.php')
-rw-r--r--system/core/Utf8.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Utf8.php b/system/core/Utf8.php
index a78616d40..828a8aeba 100644
--- a/system/core/Utf8.php
+++ b/system/core/Utf8.php
@@ -66,7 +66,7 @@ class CI_Utf8 {
}
if (
- @preg_match('/./u', 'é') === 1 // PCRE must support UTF-8
+ defined('PREG_BAD_UTF8_ERROR') // PCRE must support UTF-8
&& function_exists('iconv') // iconv must be installed
&& MB_ENABLED === TRUE // mbstring must be enabled
&& $charset === 'UTF-8' // Application charset must be UTF-8