summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/ajax
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-02-20 16:33:45 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-02-20 16:33:45 +0100
commit273e1a146b27e197a7450589594edcb9131e3b5e (patch)
treeee8a130d1e42e3fbd16a7ef8673c5334ce096e2e /apps/files_trashbin/ajax
parent3a364639b7649c12dcdd15e1c0344a35432aedc2 (diff)
downloadnextcloud-server-273e1a146b27e197a7450589594edcb9131e3b5e.tar.gz
nextcloud-server-273e1a146b27e197a7450589594edcb9131e3b5e.zip
switch to json encoded file list
Diffstat (limited to 'apps/files_trashbin/ajax')
-rw-r--r--apps/files_trashbin/ajax/delete.php2
-rw-r--r--apps/files_trashbin/ajax/undelete.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/ajax/delete.php b/apps/files_trashbin/ajax/delete.php
index 80382147eb7..34f35c39ccb 100644
--- a/apps/files_trashbin/ajax/delete.php
+++ b/apps/files_trashbin/ajax/delete.php
@@ -5,7 +5,7 @@ OCP\JSON::callCheck();
$files = $_POST['files'];
$dirlisting = $_POST['dirlisting'];
-$list = explode('|', $files);
+$list = json_decode($files);
$error = array();
$success = array();
diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php
index b76adb2a2a7..93f2aaf1fa2 100644
--- a/apps/files_trashbin/ajax/undelete.php
+++ b/apps/files_trashbin/ajax/undelete.php
@@ -5,7 +5,7 @@ OCP\JSON::callCheck();
$files = $_POST['files'];
$dirlisting = $_POST['dirlisting'];
-$list = explode('|', $files);
+$list = json_decode($files);
$error = array();
$success = array();