mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Declare $config as a global in guiconfig.inc csrf_startup() function, to properly respect the timeouts. Ticket #6803
This commit is contained in:
parent
4b0815f38a
commit
efa9174ac2
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user