diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-23 23:29:59 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-23 23:29:59 +0200 |
| commit | 126a49185229f248eae8c485b3e16e029ebcb353 (patch) | |
| tree | 7877918b7067103d667d522883e04f0129a1addc /src/Service/FormValidation.php | |
| parent | 5a25142d778eafdec33d10d673bd4abc5fe38d1c (diff) | |
| download | cms-126a49185229f248eae8c485b3e16e029ebcb353.tar.gz cms-126a49185229f248eae8c485b3e16e029ebcb353.tar.bz2 cms-126a49185229f248eae8c485b3e16e029ebcb353.zip | |
audit claude code 1, validation formulaire toujours ok, échappement dans URL, quelques htmlspecialchars manquants, fonction Security::validateURLpolo1
Diffstat (limited to 'src/Service/FormValidation.php')
| -rw-r--r-- | src/Service/FormValidation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Service/FormValidation.php b/src/Service/FormValidation.php index d91aa12..9f4564f 100644 --- a/src/Service/FormValidation.php +++ b/src/Service/FormValidation.php | |||
| @@ -46,7 +46,7 @@ class FormValidation | |||
| 46 | public function validate(): bool | 46 | public function validate(): bool |
| 47 | { | 47 | { |
| 48 | $this->error = ($this->callStrategy)(); // appel de la callback | 48 | $this->error = ($this->callStrategy)(); // appel de la callback |
| 49 | return empty($this->errors); | 49 | return $this->error === null; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | public function getError(): string | 52 | public function getError(): string |
