diff options
| author | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-09-13 02:00:27 +0000 |
|---|---|---|
| committer | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-09-13 02:00:27 +0000 |
| commit | 0fd36c0a540ecdbd4ee301655f42c763602425bc (patch) | |
| tree | 2c525da21c8303fd76363cc4a975252da2275d0a /src/globals.php | |
| parent | ee2a736ffd66d6043381fbf2da70840e2e54216c (diff) | |
| parent | 7318fd1a73fd80b34c79b7ed9152d0acb137cf00 (diff) | |
| download | boca-0fd36c0a540ecdbd4ee301655f42c763602425bc.tar.gz boca-0fd36c0a540ecdbd4ee301655f42c763602425bc.zip | |
Merge remote-tracking branch 'origin/develc' into devel
Diffstat (limited to 'src/globals.php')
| -rwxr-xr-x | src/globals.php | 2 |
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); |