summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-14 15:00:25 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-14 15:00:25 +0100
commit01304aa27eb12beedf23b1faaee77ff6f2b283e9 (patch)
treeadf105367c815d3c64a796d3672eaec11135dade /apps
parent89fccad8cee1e9d50c8517ff16d86ef135c60209 (diff)
parent96cd7c017a33e34380f3c4f3e2c61039e79e0434 (diff)
downloadnextcloud-server-01304aa27eb12beedf23b1faaee77ff6f2b283e9.tar.gz
nextcloud-server-01304aa27eb12beedf23b1faaee77ff6f2b283e9.zip
Merge pull request #13351 from owncloud/check-for-existence
Check for existence of $_GET keys
Diffstat (limited to 'apps')
-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