diff options
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); |