diff options
Diffstat (limited to 'Wrapper/Functions/func_sanitize.php')
| -rw-r--r-- | Wrapper/Functions/func_sanitize.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Wrapper/Functions/func_sanitize.php b/Wrapper/Functions/func_sanitize.php deleted file mode 100644 index cd45c28..0000000 --- a/Wrapper/Functions/func_sanitize.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php -// **************************************************************************** -// Description: Fonction simple pour nettoyer un peu la data -// **************************************************************************** -function sanitize($data) { - // Retrait des espaces en début et fin de la variable. - $trimmed = trim($data); - // Retrait des charactères HTML (XSS). - $htmlChars = htmlspecialchars($trimmed); - return $htmlChars; -} -?>
\ No newline at end of file |
