Skip to content
Snippets Groups Projects
Commit a2188595 authored by Bart Visscher's avatar Bart Visscher
Browse files

No need to strip slashes, json_decode handles that for us

parent 4ccc9d89
No related branches found
No related tags found
Loading
......@@ -8,7 +8,7 @@ OCP\JSON::callCheck();
// Get data
$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);
$filesWithError = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment