Quellcode durchsuchen

redirect to last post location in case of a expired session

stekkel vor 23 Jahren
Ursprung
Commit
7d798c4c37
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      src/webmail.php

+ 4 - 3
src/webmail.php

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