commit | 28c830507780c65c9b79f55e63d1071327c41205 | [log] [tgz] |
---|---|---|
author | dimonneon <dimonneon@gmail.com> | Mon Jul 13 11:54:05 2015 +0300 |
committer | dimonneon <dimonneon@gmail.com> | Mon Jul 13 11:54:05 2015 +0300 |
tree | d16b0a165e6ccf8c1375438148ae5004f98bbf01 | |
parent | 32bdf1c1e3c8ec6c0ccf38a947ff01c06eb9152f [diff] [blame] |
Add check for PCRE UTF-8 support
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php index 41ded94..d65f92f 100644 --- a/system/helpers/url_helper.php +++ b/system/helpers/url_helper.php
@@ -500,7 +500,7 @@ $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)