From 034276400ed8590bc5d683f0c0426601e4a98ae3 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 25 Jul 2016 09:24:32 +0200 Subject: [PATCH] Fix error message while restoring all files * use $_POST['files'] only of ssinlge files are restored * fixes #528 --- apps/files_trashbin/ajax/undelete.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php index 9095c551b4..ba67132537 100644 --- a/apps/files_trashbin/ajax/undelete.php +++ b/apps/files_trashbin/ajax/undelete.php @@ -29,7 +29,6 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); \OC::$server->getSession()->close(); -$files = $_POST['files']; $dir = '/'; if (isset($_POST['dir'])) { $dir = rtrim((string)$_POST['dir'], '/'). '/'; @@ -50,7 +49,7 @@ if (isset($_POST['allfiles']) && (string)$_POST['allfiles'] === 'true') { $list[] = $fileName; } } else { - $list = json_decode($files); + $list = json_decode($_POST['files']); } $error = array();