diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-02-20 15:17:32 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-02-20 15:17:32 +0100 |
commit | 3a364639b7649c12dcdd15e1c0344a35432aedc2 (patch) | |
tree | a2c10cf8e4ecbd526f2bd96f266e8b1cecb31f9a /apps/files_trashbin/ajax | |
parent | 211e651d7222085b528cc6e9dc8d060d8ea6a60e (diff) | |
download | nextcloud-server-3a364639b7649c12dcdd15e1c0344a35432aedc2.tar.gz nextcloud-server-3a364639b7649c12dcdd15e1c0344a35432aedc2.zip |
use "|" as delimiter instead of ";", since "|" is not allowed in file/folder names
Diffstat (limited to 'apps/files_trashbin/ajax')
-rw-r--r-- | apps/files_trashbin/ajax/delete.php | 6 | ||||
-rw-r--r-- | apps/files_trashbin/ajax/undelete.php | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_trashbin/ajax/delete.php b/apps/files_trashbin/ajax/delete.php index 915ad9379f6..80382147eb7 100644 --- a/apps/files_trashbin/ajax/delete.php +++ b/apps/files_trashbin/ajax/delete.php @@ -5,11 +5,7 @@ OCP\JSON::callCheck(); $files = $_POST['files']; $dirlisting = $_POST['dirlisting']; -$list = explode(';', $files); - -if (!is_array($list)){ - $list = array($list); -} +$list = explode('|', $files); $error = array(); $success = array(); diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php index 57f62816749..b76adb2a2a7 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 = explode('|', $files); $error = array(); $success = array(); |