Merge pull request #277 from hph86/fix_path_blacklist

fix blacklisting of characters in paths
This commit is contained in:
Michael Kaufmann
2016-01-28 22:00:56 +01:00

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;