diff options
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php index 8c94f44c6..a126cea9c 100644 --- a/inc/common.php +++ b/inc/common.php @@ -455,8 +455,9 @@ function cleanID($id){ if($conf['deaccent']) $id = utf8_deaccent($id,-1); - //remove specials (only ascii specials are removed) - $id = preg_replace('#[\x00-\x20 ¡!"§$%&()\[\]{}¿\\?`\'\#~*+=,<>\|^°@µ¹²³¼½¬]#u','_',$id); + //remove specials + //$id = preg_replace('#[\x00-\x20 ¡!"§$%&()\[\]{}¿\\?`\'\#~*+=,<>\|^°@µ¹²³¼½¬]#u','_',$id); + $id = utf8_stripspecials($id,'_','_:.-'); //clean up $id = preg_replace('#__#','_',$id); |