From 7318fd1a73fd80b34c79b7ed9152d0acb137cf00 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Mon, 10 Sep 2018 08:45:31 +0200 Subject: no space 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 a24d8b4..5c2a46b 100755 --- a/src/globals.php +++ b/src/globals.php @@ -210,6 +210,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); $text = str_replace(")", "_", $text); -- cgit v1.2.3