From 3b8705b1c8ba60e11af34a143e5f42fb1994239a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 8 Jul 2016 19:55:48 +0200 Subject: [PATCH] minmod --- manager/Checker.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/manager/Checker.php b/manager/Checker.php index 1a7b85f..c3e2cc2 100644 --- a/manager/Checker.php +++ b/manager/Checker.php @@ -101,13 +101,9 @@ break; case 'alphanumeric': - case 'user.username': - case 'group.name': - return $checker && is_string($value) && preg_match('/^[\w-]+$/i', $value); + return $checker && is_string($value) && preg_match('/^[\w\.-]+$/i', $value); break; - case 'user.firstname': - case 'user.lastname': case 'letters': return $checker && is_string($value) && preg_match('/^[a-z -]+$/i', $value); break;