diff --git a/resources/library/sanitization.php b/resources/library/sanitization.php index c27a0a7..2214880 100644 --- a/resources/library/sanitization.php +++ b/resources/library/sanitization.php @@ -5,7 +5,8 @@ // Sanitize a filename by replacing common suspicious characters with "_". function sanitize_filename($filename) { - $death_characters = array(" ", ",", "<", ">", "/", "\\", "%", "$", "^"); + $death_characters = array(" ", ",", "<", ">", "/", "\\", "\"", "\'", + "%", "$", "^"); $death_filetypes = array(".php", ".sh", ".lisp", ".cl", ".cgi", ".pl"); $sanitized_filename = str_replace($death_characters, "_", $filename);