From 19175d12ce43f5ea0f8edbdd315d71144cffb43d Mon Sep 17 00:00:00 2001 From: Olivier PEREZ <olivier@olivierperez.fr> Date: Sun, 11 Jan 2015 14:55:39 +0100 Subject: [PATCH] Allow accents in names --- app/inc/constants.php.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/inc/constants.php.template b/app/inc/constants.php.template index d8faf347..114203be 100644 --- a/app/inc/constants.php.template +++ b/app/inc/constants.php.template @@ -58,7 +58,7 @@ $ALLOWED_LANGUAGES = [ // Regex const POLL_REGEX = '/^[a-z0-9]+$/'; const CHOICE_REGEX = '/^[012]$/'; -const NAME_REGEX = '/^[ a-z0-9_ -]+$/i'; +const NAME_REGEX = '/(*UTF8)^[[:alnum:]_ -]+$/i'; // Path to logo const LOGOBANDEAU = '<relative path to the logo file>'; -- GitLab