Also check referer on logout action

release-0.6
thomascube 14 years ago
parent a77cf2292b
commit de62f02eed

@ -133,8 +133,8 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') {
} }
} }
// end session // end session (after optional referer check)
else if ($RCMAIL->task == 'logout' && isset($_SESSION['user_id'])) { else if ($RCMAIL->task == 'logout' && isset($_SESSION['user_id']) && (!$RCMAIL->config->get('referer_check') || rcube_check_referer())) {
$userdata = array('user' => $_SESSION['username'], 'host' => $_SESSION['imap_host'], 'lang' => $RCMAIL->user->language); $userdata = array('user' => $_SESSION['username'], 'host' => $_SESSION['imap_host'], 'lang' => $RCMAIL->user->language);
$OUTPUT->show_message('loggedout'); $OUTPUT->show_message('loggedout');
$RCMAIL->logout_actions(); $RCMAIL->logout_actions();

Loading…
Cancel
Save