fix age validation

This commit is contained in:
msquare 2017-11-29 17:41:12 +01:00
parent cbc7f54ad8
commit 9e04e2d4a0
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {