[Pkg-owncloud-commits] [owncloud] 09/394: Allow any characters in the groupname

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:14 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 8f715e12a92c4f3d39f0e3de442b012c0fd34852
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Thu Oct 25 11:54:27 2012 +0200

    Allow any characters in the groupname
    
    Fixes #82
---
 lib/group.php |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/lib/group.php b/lib/group.php
index 66892a9..a89c6c5 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 "_. at -"
 	 */
 	public static function createGroup( $gid ) {
-		// Check the name for bad characters
-		// Allowed are: "a-z", "A-Z", "0-9" and "_. at -"
-		if( preg_match( '/[^a-zA-Z0-9 _\.@\-]/', $gid )) {
-			return false;
-		}
 		// No empty group names!
 		if( !$gid ) {
 			return false;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list