summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-19 08:38:14 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-19 08:38:14 +0000
commit70be645779b214f73337fa8a3e6ef5d7debd53a4 (patch)
tree8858ddc3238dc7dc0e8e20f855626df5479ccc3b /roundcubemail
parent1c3f543a8db5ad72d559843eadcc6a3994dcf473 (diff)
- Fix authentication when submitting form with existing session (#1485679)
git-svn-id: https://svn.roundcube.net/trunk@2242 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/CHANGELOG1
-rw-r--r--roundcubemail/index.php4
2 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG
index 492a3da01..f9ce6de9f 100644
--- a/roundcubemail/CHANGELOG
+++ b/roundcubemail/CHANGELOG
@@ -5,6 +5,7 @@ CHANGELOG RoundCube Webmail
----------
- Fix problems with backslash as IMAP hierarchy delimiter (#1484467)
- Secure vcard export by getting rid of preg's 'e' modifier use (#1485689)
+- Fix authentication when submitting form with existing session (#1485679)
2009/01/15 (alec)
----------
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index d57c91ea9..172d57c88 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -72,6 +72,10 @@ if ($RCMAIL->action=='error' && !empty($_GET['_code'])) {
// try to log in
if ($RCMAIL->action=='login' && $RCMAIL->task=='mail') {
+ // purge the session in case of new login when a session already exists
+ $RCMAIL->kill_session();
+
+ // set IMAP host
$host = $RCMAIL->autoselect_host();
// check if client supports cookies