summaryrefslogtreecommitdiff
path: root/Wrapper/Functions/func_sanitize.php
diff options
context:
space:
mode:
Diffstat (limited to 'Wrapper/Functions/func_sanitize.php')
-rw-r--r--Wrapper/Functions/func_sanitize.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrapper/Functions/func_sanitize.php b/Wrapper/Functions/func_sanitize.php
index 2821413..cd45c28 100644
--- a/Wrapper/Functions/func_sanitize.php
+++ b/Wrapper/Functions/func_sanitize.php
@@ -5,7 +5,7 @@
function sanitize($data) {
// Retrait des espaces en début et fin de la variable.
$trimmed = trim($data);
- // Retrait des charactères HTML.
+ // Retrait des charactères HTML (XSS).
$htmlChars = htmlspecialchars($trimmed);
return $htmlChars;
}