You can't set session timeout to 0, fixes #815

This commit is contained in:
Andreas Burchert (scarya)
2011-06-24 00:39:53 +02:00
parent 6badc2ad77
commit 35958168a2
3 changed files with 11 additions and 2 deletions

View File

@@ -64,6 +64,11 @@ if(($page == 'settings' || $page == 'overview')
$settings_part = false;
$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,