From 96cd7c017a33e34380f3c4f3e2c61039e79e0434 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 14 Jan 2015 14:15:36 +0100 Subject: Check for existence of $_GET keys `$dir` may for example very well not get passed at well. --- apps/files/ajax/download.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/ajax') diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php index b2e144c4b8f..368257b95cd 100644 --- a/apps/files/ajax/download.php +++ b/apps/files/ajax/download.php @@ -25,8 +25,8 @@ OCP\User::checkLoggedIn(); \OC::$server->getSession()->close(); -$files = $_GET["files"]; -$dir = $_GET["dir"]; +$files = isset($_GET['files']) ? $_GET['files'] : ''; +$dir = isset($_GET['dir']) ? $_GET['dir'] : ''; $files_list = json_decode($files); // in case we get only a single file -- cgit v1.2.3