From 6a2b41e5e86cef9174b50f450aaf18097afe2f1c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 13 Dec 2012 18:11:00 +0100 Subject: use json encoding when deleting multiply files instead of using ; as delimiter --- apps/files/ajax/delete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/ajax') 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 -- cgit v1.2.3