fix right_main checking for right_main's that pass mailbox parameters.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 13 Feb 2006 18:21:00 +0000 (18:21 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 13 Feb 2006 18:21:00 +0000 (18:21 +0000)
unbreaks some common plugins

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10740 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/webmail.php

index 3ad1f06..7deb64b 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)