More chars to death_list
This commit is contained in:
parent
0e42f22c9e
commit
a5e4fd4ada
|
@ -5,7 +5,8 @@
|
||||||
// Sanitize a filename by replacing common suspicious characters with "_".
|
// Sanitize a filename by replacing common suspicious characters with "_".
|
||||||
function sanitize_filename($filename)
|
function sanitize_filename($filename)
|
||||||
{
|
{
|
||||||
$death_characters = array(" ", ",", "<", ">", "/", "\\", "%", "$", "^");
|
$death_characters = array(" ", ",", "<", ">", "/", "\\", "\"", "\'",
|
||||||
|
"%", "$", "^");
|
||||||
$death_filetypes = array(".php", ".sh", ".lisp", ".cl", ".cgi", ".pl");
|
$death_filetypes = array(".php", ".sh", ".lisp", ".cl", ".cgi", ".pl");
|
||||||
|
|
||||||
$sanitized_filename = str_replace($death_characters, "_", $filename);
|
$sanitized_filename = str_replace($death_characters, "_", $filename);
|
||||||
|
|
Ŝarĝante…
Reference in New Issue