aboutsummaryrefslogtreecommitdiff
path: root/src/globals.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2018-09-10 06:42:43 +0000
committerCassio de Campos <cassiopc@gmail.com>2018-09-10 06:42:43 +0000
commiteeb27b48f481d7329c65ffc6beb95730009290ed (patch)
treee90fc03f9a17be1ce9c440a0a8271e06d68b68aa /src/globals.php
parentf3497452f34af5f90a0902f71d7906472402c2ab (diff)
downloadboca-eeb27b48f481d7329c65ffc6beb95730009290ed.tar.gz
boca-eeb27b48f481d7329c65ffc6beb95730009290ed.zip
clean 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 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);