From 2109ef3469f00a630ddaf4c527ef532340f7c249 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Wed, 6 Jan 2016 19:38:19 +0100 Subject: [PATCH] More precision on MD5 regex --- app/inc/constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/inc/constants.php b/app/inc/constants.php index 2aaecaa..d82a95e 100644 --- a/app/inc/constants.php +++ b/app/inc/constants.php @@ -27,7 +27,7 @@ const BOOLEAN_REGEX = '/^(on|off|true|false|1|0)$/i'; const BOOLEAN_TRUE_REGEX = '/^(on|true|1)$/i'; const EDITABLE_CHOICE_REGEX = '/^[0-2]$/'; const BASE64_REGEX = '/^[A-Za-z0-9]+$/'; -const MD5_REGEX = '/^[A-Fa-f0-9]+$/'; +const MD5_REGEX = '/^[A-Fa-f0-9]{32}$/'; // CSRF (300s = 5min) const TOKEN_TIME = 300;