aboutsummaryrefslogtreecommitdiff
path: root/src/globals.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2018-09-10 06:45:31 +0000
committerCassio de Campos <cassiopc@gmail.com>2018-09-10 06:45:31 +0000
commit7318fd1a73fd80b34c79b7ed9152d0acb137cf00 (patch)
treee7427d9f2ec93cbcd12b56185dd6e088cd9c5393 /src/globals.php
parenteeb27b48f481d7329c65ffc6beb95730009290ed (diff)
downloadboca-7318fd1a73fd80b34c79b7ed9152d0acb137cf00.tar.gz
boca-7318fd1a73fd80b34c79b7ed9152d0acb137cf00.zip
no space filenames
Diffstat (limited to 'src/globals.php')
-rwxr-xr-xsrc/globals.php1
1 files changed, 1 insertions, 0 deletions
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);