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

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2021-10-22 18:32:35 +0300
committernachoparker <nacho@ownyourbits.com>2021-10-22 18:35:06 +0300
commite11ce5960b9e625cf143288f834956e586b2eae2 (patch)
treedeb7a4f11768733f6a8a042107247f652f17f192
parent3f5751332567792c47cdef9bbd42c2628a85910c (diff)
ncp-web: fix log download bugv1.42.1
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--changelog.md4
-rw-r--r--ncp-web/download_logs.php2
-rw-r--r--ncp-web/ncp-launcher.php2
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" }';
}
//