NEW Default value for MAIN_SECURITY_CSRF_WITH_TOKEN is now 2
This commit is contained in:
parent
636188f28a
commit
889c35e8df
@ -910,7 +910,7 @@ class Conf
|
|||||||
// Value 1 makes CSRF check for all POST parameters only
|
// Value 1 makes CSRF check for all POST parameters only
|
||||||
// Value 2 makes also CSRF check for GET requests with action = a sensitive requests like action=del, action=remove...
|
// Value 2 makes also CSRF check for GET requests with action = a sensitive requests like action=del, action=remove...
|
||||||
// Value 3 makes also CSRF check for all GET requests with a param action or massaction
|
// Value 3 makes also CSRF check for all GET requests with a param action or massaction
|
||||||
$this->global->MAIN_SECURITY_CSRF_WITH_TOKEN = 1;
|
$this->global->MAIN_SECURITY_CSRF_WITH_TOKEN = 2;
|
||||||
// Note: Set MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL=1 to have a renewal of token at each page call instead of each session (not recommended)
|
// Note: Set MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL=1 to have a renewal of token at each page call instead of each session (not recommended)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -492,6 +492,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && getDolGlobalInt(
|
|||||||
$sensitiveget = true;
|
$sensitiveget = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check a token is provided for all cases that need a mandatory token
|
// Check a token is provided for all cases that need a mandatory token
|
||||||
// (all POST actions + all login, actions and mass actions on pages with CSRFCHECK_WITH_TOKEN set + all sensitive GET actions)
|
// (all POST actions + all login, actions and mass actions on pages with CSRFCHECK_WITH_TOKEN set + all sensitive GET actions)
|
||||||
if (
|
if (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user