Strips + when formatting an hrid.
authorStéphane Jacob <sj@m4x.org>
Thu, 24 Mar 2011 12:50:02 +0000 (13:50 +0100)
committerStéphane Jacob <sj@m4x.org>
Thu, 24 Mar 2011 12:50:02 +0000 (13:50 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/pluser.php

index d0e7e64..bc7e09e 100644 (file)
@@ -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)))));
     }