fix blacklisting of characters in paths

This commit is contained in:
Hanno Heinrichs
2016-01-28 21:14:28 +01:00
parent ad302fb5c2
commit 37176aa022

View File

@@ -47,7 +47,7 @@ function makeSecurePath($path) {
// thx to aaronmueller for this snipped // thx to aaronmueller for this snipped
$badchars = array(':', ';', '|', '&', '>', '<', '`', '$', '~', '?'); $badchars = array(':', ';', '|', '&', '>', '<', '`', '$', '~', '?');
foreach ($badchars as $bc) { foreach ($badchars as $bc) {
str_replace($bc, "", $path); $path = str_replace($bc, "", $path);
} }
return $path; return $path;