No need to strip slashes, json_decode handles that for us

This commit is contained in:
Bart Visscher 2013-04-19 13:45:40 +02:00
parent 4ccc9d896a
commit a21885953f
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';