diff options
author | polo <ordipolo@gmx.fr> | 2025-05-29 11:39:54 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-05-29 11:39:54 +0200 |
commit | 99e990c131b5fa122984a869bea95f3e9074bc7b (patch) | |
tree | 2c941c08d309a5ace06d45532b9fe6cd99ab3672 /src/controller/Captcha.php | |
parent | 03668b9bb9f224f6db985bc9980dc75fab2fa4d5 (diff) | |
download | cms-99e990c131b5fa122984a869bea95f3e9074bc7b.zip |
début bloc calendrier
Diffstat (limited to 'src/controller/Captcha.php')
-rw-r--r-- | src/controller/Captcha.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
44 | } | 44 | } |
45 | static public function controlInput(string $input = '0'): int | 45 | static public function controlInput(string $input = '0'): int |
46 | { | 46 | { |
47 | // un POST est une chaîne qu'on doit convertir en nombre si: | 47 | // un POST est une chaîne qu'on doit convertir en nombre dans deux conditions: |
48 | // test de format: $input est un nombre | 48 | // test de format: $input est un nombre |
49 | // test d'intégrité: supprimer les décimales avec (int) ne change pas la valeur du nombre | 49 | // test d'intégrité: supprimer les décimales avec (int) ne change pas la valeur du nombre |
50 | return is_numeric($input) && $input == (int)$input ? (int)$input : 0; | 50 | return is_numeric($input) && $input == (int)$input ? (int)$input : 0; |