FIX allow disabling of a module (not dangerous) even if pb with token.

This commit is contained in:
Laurent Destailleur 2021-06-21 00:05:01 +02:00
parent 5d6b26ddb7
commit 0dc16b135d

View File

@ -28,7 +28,7 @@
* \brief Page to activate/disable all modules
*/
if (!defined('CSRFCHECK_WITH_TOKEN')) {
if (!defined('CSRFCHECK_WITH_TOKEN') && (empty($_GET['action']) || $_GET['action'] != 'reset')) { // We do not force security to disable modules so we can do it if problem
define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
}