From 099ada41d07014c78fb3945a40077dd01ee08c45 Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 16 Feb 2005 21:18:30 +0100 Subject: utf8_stripspecials added (related to #152) darcs-hash:20050216201830-9977f-57c89f9f77c9ee598af884efac9fb62d3b977961.gz --- inc/common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inc/common.php') 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); -- cgit v1.2.3