diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-03 17:13:20 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-03 17:13:20 +0000 |
commit | 8cd27a9820ed658109fc415dcffb3cdfb05e066b (patch) | |
tree | e5899ee2ad158df0e83bd05a2a5a639df1ba8125 | |
parent | 409105ecb6196e738abb0ecbdc3759b876ef0b41 (diff) | |
download | pfsense-8cd27a9820ed658109fc415dcffb3cdfb05e066b.zip pfsense-8cd27a9820ed658109fc415dcffb3cdfb05e066b.tar.gz |
Do not allow negative numbers in session timeout. Ticket #378.
-rwxr-xr-x | usr/local/www/system_usermanager_settings.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php index 7b96d4d..8868ed1 100755 --- a/usr/local/www/system_usermanager_settings.php +++ b/usr/local/www/system_usermanager_settings.php @@ -62,7 +62,7 @@ if ($_POST) { if($_POST['session_timeout']) { $timeout = intval($_POST['session_timeout']); - if ($timeout != "" && !is_numeric($timeout)) + if ($timeout != "" && (!is_numeric($timeout) || $timeout <= 0)) $input_errors[] = gettext("Session timeout must be an integer value."); } |