diff options
author | msquare <msquare@notrademark.de> | 2017-11-29 17:41:12 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-11-29 17:41:12 +0100 |
commit | 9e04e2d4a075995309bf0e00362d5ca69b2c637a (patch) | |
tree | ed01d5731b34459102fbea3822f78a07a6e9b0e1 /includes | |
parent | cbc7f54ad88d3a971f407e601adc0bca7c7fe29b (diff) |
fix age validation
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/guest_login.php | 2 |
1 files changed, 1 insertions, 1 deletions
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')) { |