urldecode target directory

This commit is contained in:
Björn Schießle 2012-10-24 15:37:32 +02:00
parent 3b9c10dcf6
commit ca58aa1644

View file

@ -9,7 +9,7 @@ OCP\JSON::callCheck();
// Get data
$dir = stripslashes($_GET["dir"]);
$file = stripslashes($_GET["file"]);
$target = stripslashes($_GET["target"]);
$target = stripslashes(urldecode($_GET["target"]));
if(OC_Files::move($dir, $file, $target, $file)) {