summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-25 11:54:27 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-10-25 11:54:31 +0200
commit55277c8e5a9a54baed3b1070eafffaa0f6d54c71 (patch)
tree41d83dbe77b7b137446d50ed6494a46f16c0551c
parent43ac43d7af95df2c4ef8002f9f0556ebc72ae3b0 (diff)
downloadnextcloud-server-55277c8e5a9a54baed3b1070eafffaa0f6d54c71.tar.gz
nextcloud-server-55277c8e5a9a54baed3b1070eafffaa0f6d54c71.zip
Allow any characters in the groupname
Fixes #82
-rw-r--r--lib/group.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/group.php b/lib/group.php
index 66892a99b60..a89c6c55e36 100644
--- a/lib/group.php
+++ b/lib/group.php
@@ -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;