From d2191c619f261c4149b0a8949d35167b9269f00b Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 26 Apr 2012 08:23:41 -0400
Subject: [PATCH] - Fix redirect to mail/compose on re-login (1488226)

---
 index.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/index.php b/index.php
index 6790338..9459150 100644
--- a/index.php
+++ b/index.php
@@ -129,6 +129,10 @@
       // prevent endless looping on login page
       if ($query['_task'] == 'login')
         unset($query['_task']);
+
+      // prevent redirect to compose with specified ID (#1488226)
+      if ($query['_action'] == 'compose' && !empty($query['_id']))
+        $query = array();
     }
 
     // allow plugins to control the redirect url after login success

--
Gitblit v1.9.1