diff options
author | Tom Needham <tom@owncloud.com> | 2015-12-04 13:21:24 +0000 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-08 13:35:00 +0100 |
commit | 673a8a1e4a15edb3e6199432fc7e53714a651bb3 (patch) | |
tree | f3c052aa13402e9ad9decf793922fc753cfd7d9d /apps/provisioning_api/lib | |
parent | a0345b94650f9ded7b86d53b27624557868747e4 (diff) | |
download | nextcloud-server-673a8a1e4a15edb3e6199432fc7e53714a651bb3.tar.gz nextcloud-server-673a8a1e4a15edb3e6199432fc7e53714a651bb3.zip |
Remove unnecessary group name validation
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/groups.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/groups.php b/apps/provisioning_api/lib/groups.php index 7a6e6150782..633e35357dd 100644 --- a/apps/provisioning_api/lib/groups.php +++ b/apps/provisioning_api/lib/groups.php @@ -130,7 +130,7 @@ class Groups{ public function addGroup($parameters) { // Validate name $groupId = $this->request->getParam('groupid', ''); - if( preg_match( '/[^a-zA-Z0-9 _\.@\-]/', $groupId ) || empty($groupId)){ + if(empty($groupId)){ \OCP\Util::writeLog('provisioning_api', 'Attempt made to create group using invalid characters.', \OCP\Util::ERROR); return new OC_OCS_Result(null, 101, 'Invalid group name'); } |