diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-11-13 11:22:49 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-11-13 11:22:49 +0100 |
commit | 191bb90af90d4b063435ee55d67082e7453ed1fb (patch) | |
tree | 584897855e3ca2c3a56083738df7ef9dcd51449a /inc/auth/plain.class.php | |
parent | d4caa43b1b7b6d8cead392e391bdfadd08b24c11 (diff) | |
download | rpg-191bb90af90d4b063435ee55d67082e7453ed1fb.tar.gz rpg-191bb90af90d4b063435ee55d67082e7453ed1fb.tar.bz2 |
Added group and user sanitation
Ignore-this: 26392125523d2c822580346074330ebe
darcs-hash:20091113102249-7ad00-4cede040a940d739bd34d548e12956e8d8609cfa.gz
Diffstat (limited to 'inc/auth/plain.class.php')
-rw-r--r-- | inc/auth/plain.class.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/auth/plain.class.php b/inc/auth/plain.class.php index 68976287a..0ff18d58a 100644 --- a/inc/auth/plain.class.php +++ b/inc/auth/plain.class.php @@ -261,6 +261,22 @@ class auth_plain extends auth_basic { } /** + * Only valid pageid's (no namespaces) for usernames + */ + function cleanUser($user){ + global $conf; + return cleanID(str_replace(':',$conf['sepchar'],$user)); + } + + /** + * Only valid pageid's (no namespaces) for groupnames + */ + function cleanGroup($user){ + global $conf; + return cleanID(str_replace(':',$conf['sepchar'],$group)); + } + + /** * Load all user data * * loads the user file into a datastructure |