]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow any characters in the groupname
authorLukas Reschke <lukas@statuscode.ch>
Thu, 25 Oct 2012 09:54:27 +0000 (11:54 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 25 Oct 2012 09:54:31 +0000 (11:54 +0200)
Fixes #82

lib/group.php

index 66892a99b60ddeef67561158de979adf62b33add..a89c6c55e3667df77bde8fede9aac0f6a5a847e2 100644 (file)
@@ -65,15 +65,8 @@ class OC_Group {
         *
         * Tries to create a new group. If the group name already exists, false will
         * be returned. Basic checking of Group name
-        *
-        * Allowed characters in the username are: "a-z", "A-Z", "0-9" and "_.@-"
         */
        public static function createGroup( $gid ) {
-               // Check the name for bad characters
-               // Allowed are: "a-z", "A-Z", "0-9" and "_.@-"
-               if( preg_match( '/[^a-zA-Z0-9 _\.@\-]/', $gid )) {
-                       return false;
-               }
                // No empty group names!
                if( !$gid ) {
                        return false;