diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 756dda74347..47217934d65 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -538,7 +538,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && getDolGlobalInt( $sensitiveget = true; } } elseif (getDolGlobalInt('MAIN_SECURITY_CSRF_WITH_TOKEN') >= 2) { - // Few GET actions coded with a &token into url are processed as sensitive. + // Few GET actions coded with a &token into url are also processed as sensitive. $arrayofactiontoforcetokencheck = array( 'activate', 'doprev', 'donext', 'dvprev', 'dvnext', @@ -549,7 +549,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && getDolGlobalInt( $sensitiveget = true; } // We also match for value with just a simple string that must match - if (preg_match('/^(add|classify|close|confirm|copy|del|disable|enable|remove|set|unset|update|save)/', GETPOST('action', 'aZ09'))) { + if (preg_match('/^(add|classify|close|confirm|copy|del|disable|enable|remove|set|unset|update|save|sepa)/', GETPOST('action', 'aZ09'))) { $sensitiveget = true; } }