Merge pull request #13351 from owncloud/check-for-existence

Check for existence of $_GET keys
This commit is contained in:
Lukas Reschke 2015-01-14 15:00:25 +01:00
commit 01304aa27e
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@
OCP\User::checkLoggedIn(); OCP\User::checkLoggedIn();
\OC::$server->getSession()->close(); \OC::$server->getSession()->close();
$files = $_GET["files"]; $files = isset($_GET['files']) ? $_GET['files'] : '';
$dir = $_GET["dir"]; $dir = isset($_GET['dir']) ? $_GET['dir'] : '';
$files_list = json_decode($files); $files_list = json_decode($files);
// in case we get only a single file // in case we get only a single file