From: Stéphane Jacob Date: Thu, 24 Mar 2011 12:50:02 +0000 (+0100) Subject: Strips + when formatting an hrid. X-Git-Tag: core/1.1.3~1 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0073f7e2a91105ca12117bb59db3f8e460685d21;p=platal.git Strips + when formatting an hrid. Signed-off-by: Stéphane Jacob --- diff --git a/classes/pluser.php b/classes/pluser.php index d0e7e64..bc7e09e 100644 --- a/classes/pluser.php +++ b/classes/pluser.php @@ -403,7 +403,7 @@ abstract class PlUser implements PlUserInterface private static function stripBadChars($text) { - return str_replace(array(' ', "'"), array('-', ''), + return str_replace(array(' ', "'", '+'), array('-', '', '_'), strtolower(stripslashes(replace_accent(trim($text))))); }