summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/delete.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-19 13:45:40 +0200
committerBart Visscher <bartv@thisnet.nl>2013-04-19 13:45:40 +0200
commita21885953f3420e2262fecaa0d75c4d40c2a0513 (patch)
tree134f80b7906fa9eeaf2b61f59ebea00b926ea5a3 /apps/files/ajax/delete.php
parent4ccc9d896ab132eb98d3c8eb6e90daea556e3881 (diff)
downloadnextcloud-server-a21885953f3420e2262fecaa0d75c4d40c2a0513.tar.gz
nextcloud-server-a21885953f3420e2262fecaa0d75c4d40c2a0513.zip
No need to strip slashes, json_decode handles that for us
Diffstat (limited to 'apps/files/ajax/delete.php')
-rw-r--r--apps/files/ajax/delete.php2
1 files changed, 1 insertions, 1 deletions
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 = '';