From 546302cde914a2143f86e6a384cbc5085d55396a Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 2 Jun 2024 23:19:01 +0200 Subject: =?UTF-8?q?m=C3=A9thode=20cleanSpecialChars()=20pour=20g=C3=A9rer?= =?UTF-8?q?=20les=20",=20un=20peu=20sale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Prestations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/model/Prestations.php') diff --git a/src/model/Prestations.php b/src/model/Prestations.php index 8591e83..88eb4f0 100644 --- a/src/model/Prestations.php +++ b/src/model/Prestations.php @@ -70,6 +70,7 @@ class Prestations extends Model } public function set(string $entry, string $input) { + $input = $this->cleanSpecialChars($input); // possibilité que $input devienne une chaine vide switch($entry) { case "Numéro prestation:": @@ -134,7 +135,7 @@ class Prestations extends Model } public function setCommentaires(string $value) { - $this->commentaires = $value; + $this->commentaires = $this->cleanSpecialChars($value); // possibilité que $this->commentaires devienne une chaine vide return $this; } public function setNumeroPresta($value) -- cgit v1.2.3