More chars to death_list

This commit is contained in:
Jaidyn Lev 2018-11-12 07:50:25 -06:00
parent 0e42f22c9e
commit a5e4fd4ada

View File

@ -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);