ncp-web: fix log download bug

Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
nachoparker 2021-10-22 09:32:35 -06:00
parent 3f57513325
commit e11ce5960b
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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))

View File

@ -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" }';
}
//