summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-24 16:18:54 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-24 16:18:54 +0000
commitd5c1350ffbd30d643f45073fd3ce3e3ede774f6f (patch)
treee00a50b84f5c6a4b1e1787077c7effa8c2d20ce3 /roundcubemail
parent1288c381d2c02706e2a9229febd665ba3696bb9c (diff)
Fix r5117: don't show error on default login page
git-svn-id: https://svn.roundcube.net/trunk@5124 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index e5a5ee0aa..60b4cbd4b 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -155,7 +155,7 @@ else if ($RCMAIL->task != 'login' && $_SESSION['user_id'] && $RCMAIL->action !=
// not logged in -> show login page
if (empty($RCMAIL->user->ID)) {
// log session failures
- if (!in_array(get_input_value('_task', RCUBE_INPUT_GPC), array('login','logout')) && !$session_error && ($sess_id = $_COOKIE[ini_get('session.name')])) {
+ if (($task = get_input_value('_task', RCUBE_INPUT_GPC)) && !in_array($task, array('login','logout')) && !$session_error && ($sess_id = $_COOKIE[ini_get('session.name')])) {
$RCMAIL->session->log("Aborted session " . $sess_id . "; no valid session data found");
$session_error = true;
}