From 8e0454e4606c93314e419e32a8b87588e2157fb2 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;