From: Bart Visscher Date: Fri, 19 Apr 2013 11:45:40 +0000 (+0200) Subject: No need to strip slashes, json_decode handles that for us X-Git-Tag: v6.0.0alpha2~884^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a21885953f3420e2262fecaa0d75c4d40c2a0513;p=nextcloud-server.git No need to strip slashes, json_decode handles that for us --- diff --git a/apps/files/ajax/delete.php b/apps/files/ajax/delete.php index da7e9d6b2aa..5f4856ec790 100644 --- a/apps/files/ajax/delete.php +++ b/apps/files/ajax/delete.php @@ -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 = '';