mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
ncp-web: fix log download bug
Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
parent
3f57513325
commit
e11ce5960b
@ -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
|
||||
|
||||
|
||||
@ -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))
|
||||
|
||||
@ -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" }';
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user