aboutsummaryrefslogtreecommitdiff
path: root/src/globals.php
diff options
context:
space:
mode:
authorBruno Cesar Ribas <brunoribas@gmail.com>2018-09-13 02:00:27 +0000
committerBruno Cesar Ribas <brunoribas@gmail.com>2018-09-13 02:00:27 +0000
commit0fd36c0a540ecdbd4ee301655f42c763602425bc (patch)
tree2c525da21c8303fd76363cc4a975252da2275d0a /src/globals.php
parentee2a736ffd66d6043381fbf2da70840e2e54216c (diff)
parent7318fd1a73fd80b34c79b7ed9152d0acb137cf00 (diff)
downloadboca-0fd36c0a540ecdbd4ee301655f42c763602425bc.tar.gz
boca-0fd36c0a540ecdbd4ee301655f42c763602425bc.zip
Merge remote-tracking branch 'origin/develc' into devel
Diffstat (limited to 'src/globals.php')
-rwxr-xr-xsrc/globals.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/globals.php b/src/globals.php
index 5183040..5c2a46b 100755
--- a/src/globals.php
+++ b/src/globals.php
@@ -209,6 +209,8 @@ 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);