From: stekkel Date: Mon, 14 Oct 2002 22:22:21 +0000 (+0000) Subject: rg=0 fix for vroken forward as attachment X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=8cc72ada75e8997f52dd775a453784d10a2e9bb8 rg=0 fix for vroken forward as attachment git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3851 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/right_main.php b/src/right_main.php index 5dcaf7a3..f007b888 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -70,6 +70,12 @@ if (isset($_GET['PG_SHOWALL'])) { if (isset($_GET['newsort'])) { $newsort = $_GET['newsort']; } +if (isset($_GET['composenew'])) { + $composenew = $_GET['composenew']; +} else { + $composenew = false; +} + if (isset($_GET['checkall'])) { $checkall = $_GET['checkall']; } @@ -80,6 +86,11 @@ if (isset($_SESSION['lastTargetMailbox'])) { $lastTargetMailbox =$_SESSION['lastTargetMailbox']; } +if (isset($_GET['session'])) { + $session = $_GET['session']; +} + + /* end of get globals */ @@ -150,9 +161,9 @@ do_hook ('generic_header'); sqimap_mailbox_select($imapConnection, $mailbox); -if (isset($composenew) && $composenew) { - $comp_uri = '../src/compose.php?mailbox='. urlencode($mailbox). - "&session=$composesession"; +if ($composenew) { + $comp_uri = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox). + "&session=$session"; displayPageHeader($color, $mailbox, "comp_in_new('$comp_uri');", false); } else { displayPageHeader($color, $mailbox);