From 99e990c131b5fa122984a869bea95f3e9074bc7b Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 29 May 2025 11:39:54 +0200 Subject: =?UTF-8?q?d=C3=A9but=20bloc=20calendrier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/Captcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/controller/Captcha.php') diff --git a/src/controller/Captcha.php b/src/controller/Captcha.php index 3253b95..da61a53 100644 --- a/src/controller/Captcha.php +++ b/src/controller/Captcha.php @@ -44,7 +44,7 @@ class Captcha } static public function controlInput(string $input = '0'): int { - // un POST est une chaîne qu'on doit convertir en nombre si: + // un POST est une chaîne qu'on doit convertir en nombre dans deux conditions: // test de format: $input est un nombre // test d'intégrité: supprimer les décimales avec (int) ne change pas la valeur du nombre return is_numeric($input) && $input == (int)$input ? (int)$input : 0; -- cgit v1.2.3