Browse code

More chars to death_list

Jaidyn Lev authored on 2018-11-12 13:50:25
Showing 1 changed files
... ...
@@ -5,7 +5,8 @@
5 5
 //	Sanitize a filename by replacing common suspicious characters with "_".
6 6
 function sanitize_filename($filename)
7 7
 {
8
-	$death_characters = array(" ", ",", "<", ">", "/", "\\", "%", "$", "^");
8
+	$death_characters = array(" ", ",", "<", ">", "/", "\\", "\"", "\'",
9
+				"%", "$", "^");
9 10
 	$death_filetypes = array(".php", ".sh", ".lisp", ".cl", ".cgi", ".pl");
10 11
 
11 12
 	$sanitized_filename = str_replace($death_characters, "_", $filename);