summaryrefslogtreecommitdiffstats
path: root/system/helpers/url_helper.php
diff options
context:
space:
mode:
authordimonneon <dimonneon@gmail.com>2015-07-13 10:54:05 +0200
committerdimonneon <dimonneon@gmail.com>2015-07-13 10:54:05 +0200
commit28c830507780c65c9b79f55e63d1071327c41205 (patch)
treed16b0a165e6ccf8c1375438148ae5004f98bbf01 /system/helpers/url_helper.php
parent32bdf1c1e3c8ec6c0ccf38a947ff01c06eb9152f (diff)
Add check for PCRE UTF-8 support
Diffstat (limited to 'system/helpers/url_helper.php')
-rw-r--r--system/helpers/url_helper.php2
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)