fix age validation

main
msquare 7 years ago
parent cbc7f54ad8
commit 9e04e2d4a0

@ -176,7 +176,7 @@ function guest_register()
if ($request->has('prename')) { if ($request->has('prename')) {
$preName = strip_request_item('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'); $age = strip_request_item('age');
} }
if ($request->has('tel')) { if ($request->has('tel')) {

Loading…
Cancel
Save