diff options
author | andi <andi@splitbrain.org> | 2005-02-16 21:18:30 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-02-16 21:18:30 +0100 |
commit | 099ada41d07014c78fb3945a40077dd01ee08c45 (patch) | |
tree | ffafc8ecdc49e546190e3a1ff21b5a5045274fe2 /inc/common.php | |
parent | 08d97344576a1ca2a59cc846e396a0ea20d08605 (diff) | |
download | rpg-099ada41d07014c78fb3945a40077dd01ee08c45.tar.gz rpg-099ada41d07014c78fb3945a40077dd01ee08c45.tar.bz2 |
utf8_stripspecials added (related to #152)
darcs-hash:20050216201830-9977f-57c89f9f77c9ee598af884efac9fb62d3b977961.gz
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); |