diff --git a/Smarty/templates/Header.tpl b/Smarty/templates/Header.tpl index 445f127c92..53bacf8c7e 100644 --- a/Smarty/templates/Header.tpl +++ b/Smarty/templates/Header.tpl @@ -318,7 +318,7 @@ diff --git a/modules/Users/Logout.php b/modules/Users/Logout.php index 77e974bf69..1724c75281 100644 --- a/modules/Users/Logout.php +++ b/modules/Users/Logout.php @@ -14,6 +14,9 @@ require_once 'include/utils/Session.php'; include_once 'include/integrations/saml/saml.php'; global $adb,$current_user; +$_SERVER['REQUEST_METHOD'] = 'POST'; +$_POST[$GLOBALS['csrf']['input-name']] = empty($_REQUEST[$GLOBALS['csrf']['input-name']]) ? '' : $_REQUEST[$GLOBALS['csrf']['input-name']]; +Vtiger_Request::validateRequest(); // Recording Logout Info $loghistory=new LoginHistory(); diff --git a/modules/Vtiger/header.php b/modules/Vtiger/header.php index 91718328bf..3bac6d1020 100644 --- a/modules/Vtiger/header.php +++ b/modules/Vtiger/header.php @@ -25,6 +25,7 @@ $smarty->assign('THEME', $theme); $smarty->assign('IMAGEPATH', $image_path); $smarty->assign('USER', $userName); +$smarty->assign('CSRFNAME', $GLOBALS['csrf']['input-name']); $qc_modules = getQuickCreateModules(); uasort($qc_modules, function ($a, $b) {