This commit is contained in:
xdrm-brackets 2016-07-08 19:55:48 +02:00
parent 174ed80059
commit 3b8705b1c8
1 changed files with 1 additions and 5 deletions

View File

@ -101,13 +101,9 @@
break; break;
case 'alphanumeric': case 'alphanumeric':
case 'user.username': return $checker && is_string($value) && preg_match('/^[\w\.-]+$/i', $value);
case 'group.name':
return $checker && is_string($value) && preg_match('/^[\w-]+$/i', $value);
break; break;
case 'user.firstname':
case 'user.lastname':
case 'letters': case 'letters':
return $checker && is_string($value) && preg_match('/^[a-z -]+$/i', $value); return $checker && is_string($value) && preg_match('/^[a-z -]+$/i', $value);
break; break;