summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-14 14:15:36 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-14 14:16:18 +0100
commit96cd7c017a33e34380f3c4f3e2c61039e79e0434 (patch)
tree3c68646f4d6891c09e70cb1b705f4e5fed988a05 /apps/files/ajax
parent5b706a468f7fdc6dce8d147f2d984a138e1a86ea (diff)
downloadnextcloud-server-96cd7c017a33e34380f3c4f3e2c61039e79e0434.tar.gz
nextcloud-server-96cd7c017a33e34380f3c4f3e2c61039e79e0434.zip
Check for existence of $_GET keys
`$dir` may for example very well not get passed at well.
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/download.php4
1 files changed, 2 insertions, 2 deletions
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