You can't set session timeout to 0, fixes #815
This commit is contained in:
@@ -65,6 +65,11 @@ if(($page == 'settings' || $page == 'overview')
|
||||
$only_enabledisable = true;
|
||||
}
|
||||
|
||||
// check if the session timeout is too low #815
|
||||
if (isset($_POST['session_sessiontimeout']) && $_POST['session_sessiontimeout'] <= 60) {
|
||||
standard_error($lng['error']['session_timeout'], $lng['error']['session_timeout_desc']);
|
||||
}
|
||||
|
||||
if(processFormEx(
|
||||
$settings_data,
|
||||
$_POST,
|
||||
|
||||
@@ -1885,3 +1885,5 @@ $lng['serversettings']['diskquota_repquota_path']['description'] = 'Path to repq
|
||||
$lng['serversettings']['diskquota_quotatool_path']['description'] = 'Path to quotatool';
|
||||
$lng['serversettings']['diskquota_customer_partition']['description'] = 'Partition, on which the customer files are stored';
|
||||
$lng['tasks']['diskspace_set_quota'] = 'Set quota on filesystem';
|
||||
$lng['error']['session_timeout'] = 'Value too low';
|
||||
$lng['error']['session_timeout_desc'] = 'You should not set the session timeout lower than 1 minute.';
|
||||
@@ -1616,3 +1616,5 @@ $lng['serversettings']['diskquota_repquota_path']['description'] = 'Pfad zu repq
|
||||
$lng['serversettings']['diskquota_quotatool_path']['description'] = 'Pfad zu quotatool';
|
||||
$lng['serversettings']['diskquota_customer_partition']['description'] = 'Partition, auf welcher die Kundendaten liegen';
|
||||
$lng['tasks']['diskspace_set_quota'] = 'Quota auf dem Dateisystem setzen';
|
||||
$lng['error']['session_timeout'] = 'Wert zu niedrig';
|
||||
$lng['error']['session_timeout_desc'] = 'Der Wert der Session Timeout sollte nicht unter einer Minute liegen.';
|
||||
Reference in New Issue
Block a user