From d329f0528c40798bc5bf9158eda753eef88c7cdb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Jan 2024 13:35:20 +0100 Subject: [PATCH] Fix version qualified for security report --- htdocs/main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 05049f2e360..7316fb92d46 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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; }