Permalink
Browse files

- Fix redirect to mail/compose on re-login (1488226)

  • Loading branch information...
1 parent ee5569c commit d2191c619f261c4149b0a8949d35167b9269f00b @alecpl alecpl committed Apr 26, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 index.php
View
@@ -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

0 comments on commit d2191c6

Please sign in to comment.