Skip to content

Commit

Permalink
Fix version qualified for security report
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 18, 2024
1 parent 8706d58 commit d329f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/main.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ function analyseVarsForSqlAndScriptsInjection(&$var, $type)
// 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;
}
Expand Down

0 comments on commit d329f05

Please sign in to comment.