From 9a186afeace97d007378a097c996f3e13691b144 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 13 Feb 2006 18:21:00 +0000 Subject: [PATCH] fix right_main checking for right_main's that pass mailbox parameters. 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/webmail.php b/src/webmail.php index 3ad1f06c..7deb64b4 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -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) -- 2.25.1