diff options
author | jim-p <jimp@pfsense.org> | 2016-09-22 09:15:48 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-09-22 09:15:48 -0400 |
commit | efa9174ac25bdda8b8d943ff25c8a065cc787f5e (patch) | |
tree | 81ad05f3677661eda5d95015ea2f3031f17e9659 | |
parent | 4b0815f38a8a0f98519ca0c2bff7c81b6464e579 (diff) | |
download | pfsense-efa9174ac25bdda8b8d943ff25c8a065cc787f5e.zip pfsense-efa9174ac25bdda8b8d943ff25c8a065cc787f5e.tar.gz |
Declare $config as a global in guiconfig.inc csrf_startup() function, to properly respect the timeouts. Ticket #6803
-rw-r--r-- | src/usr/local/www/guiconfig.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc index 1da88ce..38a6c17 100644 --- a/src/usr/local/www/guiconfig.inc +++ b/src/usr/local/www/guiconfig.inc @@ -27,6 +27,7 @@ /* THIS MUST BE ABOVE ALL OTHER CODE */ if (!$nocsrf) { function csrf_startup() { + global $config; csrf_conf('rewrite-js', '/csrf/csrf-magic.js'); $timeout_minutes = isset($config['system']['webgui']['session_timeout']) ? $config['system']['webgui']['session_timeout'] : 240; csrf_conf('expires', $timeout_minutes * 60); |