summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaidyn Lev <jadedctrl@teknik.io>2018-11-12 13:50:25 +0000
committerJaidyn Lev <jadedctrl@teknik.io>2018-11-12 13:50:25 +0000
commita5e4fd4ada85cdcfd101ebb8c33c6dee7e6ff5b3 (patch)
tree8608fc0e2d5029b4472c35b828253c6fa255a704
parent0e42f22c9ecf29579bcecee202d3f7b96263b070 (diff)
downloadinsert-coin-master.zip
insert-coin-master.tar.bz2
More chars to death_listHEADmaster
-rw-r--r--resources/library/sanitization.php3
1 files changed, 2 insertions, 1 deletions
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);