diff --git a/ajax/download.php b/ajax/download.php index a1612ec5..1905ffe3 100644 --- a/ajax/download.php +++ b/ajax/download.php @@ -14,5 +14,10 @@ namespace OCA\Documents; \OCP\JSON::checkLoggedIn(); -$download = new Download(\OCP\User::getUser(), '/files' . @$_GET['path']); -$download->sendResponse(); +$path = Helper::getArrayValueByKey($_GET, 'path'); +if (!empty($path)){ + $fullPath = '/files' . $path; + $download = new Download(\OCP\User::getUser(), $fullPath); + $download->sendResponse(); +} +exit(); \ No newline at end of file diff --git a/lib/db/member.php b/lib/db/member.php index 17a5b9e1..d70295ff 100644 --- a/lib/db/member.php +++ b/lib/db/member.php @@ -16,6 +16,7 @@ namespace OCA\Documents; * @method boolean getIsGuest() * @method string getEsId() * @method string getToken() + * @method int getStatus() */ class Db_Member extends Db{