Skip to content
Snippets Groups Projects
Commit 96cd7c01 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Check for existence of $_GET keys

`$dir` may for example very well not get passed at well.
parent 5b706a46
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment