Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'controller/callbackcontroller.php')
-rw-r--r--controller/callbackcontroller.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/controller/callbackcontroller.php b/controller/callbackcontroller.php
index f69901f..a749013 100644
--- a/controller/callbackcontroller.php
+++ b/controller/callbackcontroller.php
@@ -158,9 +158,9 @@ class CallbackController extends Controller {
*/
public function download($doc) {
- $hashData = $this->crypt->ReadHash($doc);
+ list ($hashData, $error) = $this->crypt->ReadHash($doc);
if ($hashData === NULL) {
- $this->logger->info("Download with empty or not correct hash", array("app" => $this->appName));
+ $this->logger->info("Download with empty or not correct hash: " . $error, array("app" => $this->appName));
return new JSONResponse(["message" => $this->trans->t("Access deny")], Http::STATUS_FORBIDDEN);
}
if ($hashData->action !== "download") {
@@ -209,9 +209,9 @@ class CallbackController extends Controller {
*/
public function track($doc, $users, $key, $status, $url) {
- $hashData = $this->crypt->ReadHash($doc);
+ list ($hashData, $error) = $this->crypt->ReadHash($doc);
if ($hashData === NULL) {
- $this->logger->info("Track with empty or not correct hash", array("app" => $this->appName));
+ $this->logger->info("Track with empty or not correct hash: " . $error, array("app" => $this->appName));
return new JSONResponse(["message" => $this->trans->t("Access deny")], Http::STATUS_FORBIDDEN);
}
if ($hashData->action !== "track") {
@@ -269,6 +269,7 @@ class CallbackController extends Controller {
break;
case "Editing":
+ case "Closed":
$error = 0;
break;
}