From 15f49182583f45b71d27f6150697a7582f93b7e6 Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Tue, 26 Mar 2019 15:31:45 +0100 Subject: [PATCH] Fix a regression itroduced by AlphaNumericalTextInputFormField --- evolibs/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evolibs/Form.php b/evolibs/Form.php index 700a9a3..3df9cfe 100644 --- a/evolibs/Form.php +++ b/evolibs/Form.php @@ -426,7 +426,7 @@ class AlphaNumericalTextInputFormField extends FormField { return FALSE; } - if (!preg_match("/^(?!-)(?!_)[[a-zA-Z0-9-_]+(?value)) { + if (!preg_match("/^(?!-)(?!_)[[a-zA-Z0-9-_]*(?value)) { if($set_error) $this->error = 'Seul les caractères a-z A-Z 0-9 sont autorisés (- et _ le sont excepté en début et fin)'; return FALSE; }