diff --git a/classes/html.php b/classes/html.php index 03ff4a5..e2d7c13 100644 --- a/classes/html.php +++ b/classes/html.php @@ -2,9 +2,18 @@ class HTML { + /* + * Characters that will pass: + * a-z + * A-Z + * 0-9 + * . + * _ + * - + */ function sanatizeString($string) { - return preg_replace("/[^a-zA-Z0-9._]+/", "", $string); + return preg_replace("/[^a-zA-Z0-9._\-]+/", "", $string); } function renderSize($byte)