summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-09-22 09:15:48 -0400
committerjim-p <jimp@pfsense.org>2016-09-22 09:15:48 -0400
commitefa9174ac25bdda8b8d943ff25c8a065cc787f5e (patch)
tree81ad05f3677661eda5d95015ea2f3031f17e9659
parent4b0815f38a8a0f98519ca0c2bff7c81b6464e579 (diff)
downloadpfsense-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.inc1
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);
OpenPOWER on IntegriCloud