summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-16 21:18:30 +0100
committerandi <andi@splitbrain.org>2005-02-16 21:18:30 +0100
commit099ada41d07014c78fb3945a40077dd01ee08c45 (patch)
treeffafc8ecdc49e546190e3a1ff21b5a5045274fe2 /inc/common.php
parent08d97344576a1ca2a59cc846e396a0ea20d08605 (diff)
downloadrpg-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.php5
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);