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 /ncp-web
parent3f5751332567792c47cdef9bbd42c2628a85910c (diff)
ncp-web: fix log download bugv1.42.1
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'ncp-web')
-rw-r--r--ncp-web/download_logs.php2
-rw-r--r--ncp-web/ncp-launcher.php2
2 files changed, 2 insertions, 2 deletions
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" }';
}
//