FIX repeating error "token expired"

This commit is contained in:
Laurent Destailleur 2022-05-29 09:37:03 +02:00
parent 23eb0b3264
commit 61b69ca835

View File

@ -74,6 +74,9 @@ if (!preg_match('/mainmenu=/', $php_self)) {
if (preg_match('/'.preg_quote('core/modules/oauth', '/').'/', $php_self)) {
$php_self = DOL_URL_ROOT.'/index.php?mainmenu=home';
}
$php_self = preg_replace('/(\?|&|&)action=[^&]+/', '\1', $php_self);
$php_self = preg_replace('/(\?|&|&)massaction=[^&]+/', '\1', $php_self);
$php_self = preg_replace('/(\?|&|&)token=[^&]+/', '\1', $php_self);
// Javascript code on logon page only to detect user tz, dst_observed, dst_first, dst_second
$arrayofjs = array(