diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-12-13 18:11:00 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-12-13 18:11:00 +0100 |
commit | 6a2b41e5e86cef9174b50f450aaf18097afe2f1c (patch) | |
tree | 6422bde99980041a71332033d156d12b24990e80 /apps/files/ajax | |
parent | 77c16b293377d40668dd8aa7af1fe93757dc8d46 (diff) | |
download | nextcloud-server-6a2b41e5e86cef9174b50f450aaf18097afe2f1c.tar.gz nextcloud-server-6a2b41e5e86cef9174b50f450aaf18097afe2f1c.zip |
use json encoding when deleting multiply files instead of using ; as delimiter
Diffstat (limited to 'apps/files/ajax')
-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 57c8c15c197..6532b76df21 100644 --- a/apps/files/ajax/delete.php +++ b/apps/files/ajax/delete.php @@ -10,7 +10,7 @@ OCP\JSON::callCheck(); $dir = stripslashes($_POST["dir"]); $files = isset($_POST["file"]) ? stripslashes($_POST["file"]) : stripslashes($_POST["files"]); -$files = explode(';', $files); +$files = json_decode($files); $filesWithError = ''; $success = true; //Now delete |