From 0d86340a4c5661691bb05e210c669224436fbac7 Mon Sep 17 00:00:00 2001 From: envoyr Date: Sat, 11 May 2024 18:38:56 +0200 Subject: [PATCH] fix session_sessiontimeout request and add missing language string Signed-off-by: envoyr --- admin_settings.php | 2 +- dns_editor.php | 2 +- lng/de.lng.php | 1 + lng/en.lng.php | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin_settings.php b/admin_settings.php index f0c359b3..9983b6b3 100644 --- a/admin_settings.php +++ b/admin_settings.php @@ -69,7 +69,7 @@ if ($page == 'overview' && $userinfo['change_serversettings'] == '1') { } // check if the session timeout is too low #815 - if (Request::post('session_sessiontimeout', 0) < 60) { + if (!empty(Request::post('session_sessiontimeout')) && intval(Request::post('session_sessiontimeout', 0)) < 60) { Response::standardError(['session_timeout', 'session_timeout_desc']); } diff --git a/dns_editor.php b/dns_editor.php index 03aaf6a5..ee03f6dc 100644 --- a/dns_editor.php +++ b/dns_editor.php @@ -43,7 +43,7 @@ use Froxlor\UI\Response; $domain_id = (int)Request::any('domain_id'); -$record = Request::post('dns_record', null); +$record = Request::post('dns_record'); $type = Request::post('dns_type', 'A'); $prio = Request::post('dns_mxp'); $content = Request::post('dns_content'); diff --git a/lng/de.lng.php b/lng/de.lng.php index 104a95fa..aab6b73b 100644 --- a/lng/de.lng.php +++ b/lng/de.lng.php @@ -1830,6 +1830,7 @@ Vielen Dank, Ihr Administrator', ], 'passwordcryptfunc' => [ 'title' => 'Wählen Sie die zu verwendende Passwort-Verschlüsselungsmethode', + 'description' => 'Wählen Sie, welche Methode zur Verschlüsselung von Kennwörtern verwendet werden soll. Wenn Sie diese Einstellung ändern, werden nur neue Kennwörter mit der neuen Methode verschlüsselt. Bestehende Passwörter werden nicht geändert.' ], 'systemdefault' => 'Systemstandard', 'panel_allow_theme_change_admin' => 'Erlaube Admins das Theme zu wechseln', diff --git a/lng/en.lng.php b/lng/en.lng.php index ba2c7653..e24ed0bd 100644 --- a/lng/en.lng.php +++ b/lng/en.lng.php @@ -1952,6 +1952,7 @@ Yours sincerely, your administrator', ], 'passwordcryptfunc' => [ 'title' => 'Choose which password-crypt method is to be used', + 'description' => 'Choose which password-crypt method is to be used. If you change this setting, only new passwords will be encrypted with the new method. Existing passwords will not be changed.', ], 'systemdefault' => 'System default', 'panel_allow_theme_change_admin' => 'Allow admins to change the theme',