Fix version qualified for security report
This commit is contained in:
parent
8706d58ea6
commit
d329f0528c
1 changed files with 1 additions and 1 deletions
|
|
@ -537,7 +537,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && getDolGlobalInt(
|
|||
// Array of action code where CSRFCHECK with token will be forced (so token must be provided on url request)
|
||||
$sensitiveget = false;
|
||||
if ((GETPOSTISSET('massaction') || GETPOST('action', 'aZ09')) && getDolGlobalInt('MAIN_SECURITY_CSRF_WITH_TOKEN') >= 3) {
|
||||
// All GET actions (except the listed exception) and mass actions are processed as sensitive.
|
||||
// All GET actions (except the listed exception that are post actions) and mass actions are processed as sensitive.
|
||||
if (GETPOSTISSET('massaction') || !in_array(GETPOST('action', 'aZ09'), array('create', 'createsite', 'createcard', 'edit', 'editvalidator', 'file_manager', 'presend', 'presend_addmessage', 'preview', 'specimen'))) { // We exclude some action that are legitimate
|
||||
$sensitiveget = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue