diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 05049f2e36037..7316fb92d46ee 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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; }