From d7468fc363b5d028db84373d4abfa6d7d19bacb9 Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 11 Aug 2025 06:25:39 +0200 Subject: =?UTF-8?q?nouveau=20routeur!=20et=20contr=C3=B4leurs=20et=20vues?= =?UTF-8?q?=20pour=20la=20connexion=20et=20la=20gestion=20du=20compte,=20d?= =?UTF-8?q?=C3=A9but=20d'utilisation=20de=20Request=20et=20Response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Security.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/Security.php') diff --git a/src/Security.php b/src/Security.php index b2042fd..c825994 100644 --- a/src/Security.php +++ b/src/Security.php @@ -19,8 +19,8 @@ class Security // faire qu'un certain élément puisse n'avoir que certains attributs, regarder la doc private static $specHtmLawed = ''; - // ATTENTION, n'applique pas htmlspecialchars() !! - public static function secureString(string $chaine): string + // obtenir du HTML non dangereur sans appliquer htmlspecialchars + public static function secureHTML(string $chaine): string { return trim(htmLawed($chaine, self::$configHtmLawed, self::$specHtmLawed)); } @@ -80,13 +80,6 @@ class Security } } -// erreurs à la création des mots de passe -function removeSpacesTabsCRLF(string $chaine): string -{ - $cibles = [' ', "\t", "\n", "\r"]; // doubles quotes !! - return(str_replace($cibles, '', $chaine)); -} - // lien sans http:// function fixLinks($data) { -- cgit v1.2.3