diff --git a/lib/functions/filedir/function.makeSecurePath.php b/lib/functions/filedir/function.makeSecurePath.php index 5d3fc01a..cdcfb7e1 100644 --- a/lib/functions/filedir/function.makeSecurePath.php +++ b/lib/functions/filedir/function.makeSecurePath.php @@ -47,7 +47,7 @@ function makeSecurePath($path) { // thx to aaronmueller for this snipped $badchars = array(':', ';', '|', '&', '>', '<', '`', '$', '~', '?'); foreach ($badchars as $bc) { - str_replace($bc, "", $path); + $path = str_replace($bc, "", $path); } return $path;