diff options
Diffstat (limited to 'lib/plugins/authplain/auth.php')
-rw-r--r-- | lib/plugins/authplain/auth.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/plugins/authplain/auth.php b/lib/plugins/authplain/auth.php index a92fb3b2c..f2dd4f9c8 100644 --- a/lib/plugins/authplain/auth.php +++ b/lib/plugins/authplain/auth.php @@ -354,7 +354,8 @@ class auth_plugin_authplain extends DokuWiki_Auth_Plugin public function cleanUser($user) { global $conf; - return cleanID(str_replace(':', $conf['sepchar'], $user)); + + return cleanID(str_replace([':', '/', ';'], $conf['sepchar'], $user)); } /** @@ -366,7 +367,8 @@ class auth_plugin_authplain extends DokuWiki_Auth_Plugin public function cleanGroup($group) { global $conf; - return cleanID(str_replace(':', $conf['sepchar'], $group)); + + return cleanID(str_replace([':', '/', ';'], $conf['sepchar'], $group)); } /** |