From e11ce5960b9e625cf143288f834956e586b2eae2 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Fri, 22 Oct 2021 09:32:35 -0600 Subject: ncp-web: fix log download bug Signed-off-by: nachoparker --- changelog.md | 4 +++- ncp-web/download_logs.php | 2 +- ncp-web/ncp-launcher.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 21fc7886..1f36a9ab 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v1.42.0](https://github.com/nextcloud/nextcloudpi/commit/f80d335) (2021-10-21) ncp-web: add Russion translations +[v1.42.1](https://github.com/nextcloud/nextcloudpi/commit/945716f) (2021-10-22) ncp-web: fix log download bug + +[v1.42.0 ](https://github.com/nextcloud/nextcloudpi/commit/3f57513) (2021-10-21) ncp-web: add Russion translations [v1.41.12](https://github.com/nextcloud/nextcloudpi/commit/36c1f46) (2021-10-20) letsencrypt: disable also ncp web certs if OFF diff --git a/ncp-web/download_logs.php b/ncp-web/download_logs.php index 5e02469f..15413445 100644 --- a/ncp-web/download_logs.php +++ b/ncp-web/download_logs.php @@ -18,7 +18,7 @@ if ( empty($token) || !validateCSRFToken($token) ) $file = '/var/log/ncp.log'; -if (!file_exists($file) +if (!file_exists($file)) die('File not found'); if (!is_readable($file)) diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php index eb2281ae..25fee4b1 100644 --- a/ncp-web/ncp-launcher.php +++ b/ncp-web/ncp-launcher.php @@ -183,7 +183,7 @@ else if ( $_POST['action'] == "next-dl" ) { echo '{ "token": "' . getCSRFToken() . '",'; // Get new token echo '"token_dl": "' . getCSRFToken() . '",'; // Get new download token - echo ' "ret": "' . $ret . '" }'; + echo ' "ret": "0" }'; } // -- cgit v1.2.3