From 37176aa02217ff26b85ec03fda78b7b8681a869b Mon Sep 17 00:00:00 2001 From: Hanno Heinrichs Date: Thu, 28 Jan 2016 21:14:28 +0100 Subject: [PATCH] fix blacklisting of characters in paths --- lib/functions/filedir/function.makeSecurePath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;