summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authordimonneon <dimonneon@gmail.com>2015-07-10 20:47:04 +0200
committerdimonneon <dimonneon@gmail.com>2015-07-10 20:55:38 +0200
commit32bdf1c1e3c8ec6c0ccf38a947ff01c06eb9152f (patch)
treeccf78820909c166e4034d7cf6097b1bde6fbf324 /system/helpers
parent9bb9d072259fead8e4d9693e9b40efc91d5ad7de (diff)
Add unicode support in url_title function
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/url_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index 6a033d6ba..41ded94ee 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -492,7 +492,7 @@ if ( ! function_exists('url_title'))
$trans = array(
'&.+?;' => '',
- '[^a-z0-9 _-]' => '',
+ '[^\w\d _-]' => '',
'\s+' => $separator,
'('.$q_separator.')+' => $separator
);
@@ -500,7 +500,7 @@ if ( ! function_exists('url_title'))
$str = strip_tags($str);
foreach ($trans as $key => $val)
{
- $str = preg_replace('#'.$key.'#i', $val, $str);
+ $str = preg_replace('#'.$key.'#ui', $val, $str);
}
if ($lowercase === TRUE)