redirect to last post location in case of a expired session
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Jul 2002 21:40:43 +0000 (21:40 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Jul 2002 21:40:43 +0000 (21:40 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3208 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/webmail.php

index 34008cf..2a4e0cd 100644 (file)
@@ -90,8 +90,7 @@ else {
  */
 if (!isset($right_frame)) {
     $right_frame = '';
-}
-
+} 
 if ($right_frame == 'right_main.php') {
     $urlMailbox = urlencode($mailbox);
     $right_frame_url =
@@ -102,8 +101,10 @@ if ($right_frame == 'right_main.php') {
     $right_frame_url = 'folders.php';
 } elseif ($right_frame == 'compose.php') {
     $right_frame_url = "compose.php?send_to=$rcptaddress";
-} else {
+} else if ($right_frame == '') {
     $right_frame_url = 'right_main.php';
+} else {
+    $right_frame_url =  urldecode($right_frame);
 }
 
 if ($location_of_bar == 'right') {