diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-04-19 13:45:40 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-04-19 13:45:40 +0200 |
commit | a21885953f3420e2262fecaa0d75c4d40c2a0513 (patch) | |
tree | 134f80b7906fa9eeaf2b61f59ebea00b926ea5a3 /apps/files/ajax/delete.php | |
parent | 4ccc9d896ab132eb98d3c8eb6e90daea556e3881 (diff) | |
download | nextcloud-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.php | 2 |
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 = ''; |