Do not respond if path is empty
This commit is contained in:
parent
14398d6979
commit
1c6a7287f0
@ -14,5 +14,10 @@ namespace OCA\Documents;
|
||||
|
||||
\OCP\JSON::checkLoggedIn();
|
||||
|
||||
$download = new Download(\OCP\User::getUser(), '/files' . @$_GET['path']);
|
||||
$path = Helper::getArrayValueByKey($_GET, 'path');
|
||||
if (!empty($path)){
|
||||
$fullPath = '/files' . $path;
|
||||
$download = new Download(\OCP\User::getUser(), $fullPath);
|
||||
$download->sendResponse();
|
||||
}
|
||||
exit();
|
Loading…
x
Reference in New Issue
Block a user