No need to strip slashes, json_decode handles that for us
This commit is contained in:
parent
4ccc9d896a
commit
a21885953f
|
@ -8,7 +8,7 @@ OCP\JSON::callCheck();
|
||||||
|
|
||||||
// Get data
|
// Get data
|
||||||
$dir = stripslashes($_POST["dir"]);
|
$dir = stripslashes($_POST["dir"]);
|
||||||
$files = isset($_POST["file"]) ? stripslashes($_POST["file"]) : stripslashes($_POST["files"]);
|
$files = isset($_POST["file"]) ? $_POST["file"] : $_POST["files"];
|
||||||
|
|
||||||
$files = json_decode($files);
|
$files = json_decode($files);
|
||||||
$filesWithError = '';
|
$filesWithError = '';
|
||||||
|
|
Loading…
Reference in New Issue