diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-04-24 13:27:29 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-04-24 13:27:29 +0200 |
commit | a544971fe81e47bcf79bae66ef5ef5592bce12e8 (patch) | |
tree | bd63c71a7eb3a6cd6d7296661a92bce59d312886 /index.php | |
parent | c72f6929826521bd444352c9681844a0e37811fb (diff) |
Fix error when using check_referer=true
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |