Fix error when using check_referer=true

pull/88/head
Aleksander Machniak 12 years ago
parent 32229952ed
commit 4571305398

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix error when using check_referer=true
- Fix incorrect handling of some specific links (#1489060)
- Fix incorrect handling of leading spaces in text wrapping
- Fix unintentional messages list jumps on click in Internet Explorer (#1489056)

@ -161,7 +161,7 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') {
}
// end session (after optional referer check)
else if ($RCMAIL->task == 'logout' && isset($_SESSION['user_id']) && (!$RCMAIL->config->get('referer_check') || rcmail::check_referer())) {
else if ($RCMAIL->task == 'logout' && isset($_SESSION['user_id']) && (!$RCMAIL->config->get('referer_check') || rcube_utils::check_referer())) {
$userdata = array(
'user' => $_SESSION['username'],
'host' => $_SESSION['storage_host'],
@ -236,7 +236,7 @@ else {
}
// check referer if configured
if ($RCMAIL->config->get('referer_check') && !rcmail::check_referer()) {
if ($RCMAIL->config->get('referer_check') && !rcube_utils::check_referer()) {
raise_error(array(
'code' => 403, 'type' => 'php',
'message' => "Referer check failed"), true, true);

@ -287,7 +287,7 @@ function rcmail_remote_ip()
function rcube_check_referer()
{
return rcmail::check_referer();
return rcube_utils::check_referer();
}
function rcube_timer()

Loading…
Cancel
Save