fix right_main checking for right_main's that pass mailbox parameters.
[squirrelmail.git] / src / webmail.php
index 3ad1f06cce7eef25427504c862c52592780cfbfa..7deb64b4f0d3743048ebd2a5fe6301c9e1c32172 100644 (file)
@@ -150,6 +150,12 @@ if (empty($right_frame) || (strpos(urldecode($right_frame), '//') !== false)) {
     $right_frame = '';
 }
 
+if ( strpos($right_frame,'?') ) {
+    $right_frame_file = substr($right_frame,0,strpos($right_frame,'?'));
+} else {
+    $right_frame_file = $right_frame;
+}
+
 switch($right_frame) {
     case 'right_main.php':
         $right_frame_url = "right_main.php?mailbox=".urlencode($mailbox)