From 9e04e2d4a075995309bf0e00362d5ca69b2c637a Mon Sep 17 00:00:00 2001 From: msquare Date: Wed, 29 Nov 2017 17:41:12 +0100 Subject: [PATCH] fix age validation --- includes/pages/guest_login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index 76c944c5..0f8137d0 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -176,7 +176,7 @@ function guest_register() if ($request->has('prename')) { $preName = strip_request_item('prename'); } - if ($request->has('age') && preg_match('/^\d{0,4}$/', $request->input('age'))) { + if ($request->has('age') && preg_match('/^\d{1,4}$/', $request->input('age'))) { $age = strip_request_item('age'); } if ($request->has('tel')) {