diff options
author | dimonneon <dimonneon@gmail.com> | 2015-07-13 10:54:05 +0200 |
---|---|---|
committer | dimonneon <dimonneon@gmail.com> | 2015-07-13 10:54:05 +0200 |
commit | 28c830507780c65c9b79f55e63d1071327c41205 (patch) | |
tree | d16b0a165e6ccf8c1375438148ae5004f98bbf01 /system/helpers/url_helper.php | |
parent | 32bdf1c1e3c8ec6c0ccf38a947ff01c06eb9152f (diff) |
Add check for PCRE UTF-8 support
Diffstat (limited to 'system/helpers/url_helper.php')
-rw-r--r-- | system/helpers/url_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php index 41ded94ee..d65f92f1b 100644 --- a/system/helpers/url_helper.php +++ b/system/helpers/url_helper.php @@ -500,7 +500,7 @@ if ( ! function_exists('url_title')) $str = strip_tags($str); foreach ($trans as $key => $val) { - $str = preg_replace('#'.$key.'#ui', $val, $str); + $str = preg_replace('#'.$key.'#i'.(UTF8_ENABLED ? 'u' : ''), $val, $str); } if ($lowercase === TRUE) |