From eeb27b48f481d7329c65ffc6beb95730009290ed Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Mon, 10 Sep 2018 08:42:43 +0200 Subject: clean filenames --- src/globals.php | 1 + 1 file changed, 1 insertion(+) (limited to 'src/globals.php') diff --git a/src/globals.php b/src/globals.php index 5183040..a24d8b4 100755 --- a/src/globals.php +++ b/src/globals.php @@ -209,6 +209,7 @@ function sanitizeText($text, $doamp=true) } function sanitizeFilename($text) { + $text = preg_replace('/[^[:print:]]/', '',$text); $text = str_replace("*", "_", $text); $text = str_replace("$", "_", $text); $text = str_replace(")", "_", $text); -- cgit v1.2.3