diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-18 11:48:52 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-18 11:48:52 +0200 |
commit | f22c05deab263129c7d278d5e4d097cd9ec5573a (patch) | |
tree | 91c3de77e41cc22ca3359151433530a0998cff45 /lib/group.php | |
parent | b37fb9142f095b893db818437f8b42b58377f444 (diff) | |
download | nextcloud-server-f22c05deab263129c7d278d5e4d097cd9ec5573a.tar.gz nextcloud-server-f22c05deab263129c7d278d5e4d097cd9ec5573a.zip |
Check for existance of group- and usernames, don't mix OC_USER and OC_GROUP!
Diffstat (limited to 'lib/group.php')
-rw-r--r-- | lib/group.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/group.php b/lib/group.php index ef8b7cecfb2..eb4aa3bbf28 100644 --- a/lib/group.php +++ b/lib/group.php @@ -104,6 +104,11 @@ class OC_GROUP { if( preg_match( '/[^a-zA-Z0-9 _\.@\-]/', $gid )){ return false; } + // No empty group names! + if( !$gid ){ + return false; + } + $run = true; OC_HOOK::emit( "OC_GROUP", "pre_createGroup", array( "run" => &$run, "gid" => $gid )); |