From: kink Date: Sat, 26 Jul 2003 10:15:14 +0000 (+0000) Subject: Use mail_sent in stead of passing whole message in url var. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2ffeb7c581517ebf09eac844c9de7ec4f8132722;p=squirrelmail.git Use mail_sent in stead of passing whole message in url var. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5426 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index 7cb53aaf..a0baf73a 100644 --- a/src/compose.php +++ b/src/compose.php @@ -385,7 +385,7 @@ if ($send) { } else { Header("Location: $location/right_main.php?mailbox=$urlMailbox&sort=$sort". - "&startMessage=$startMessage¬e=".urlencode(_("Your Message has been sent."))); + "&startMessage=$startMessage&mail_sent=yes"); } } else { if ($compose_new_win == '1') { diff --git a/src/right_main.php b/src/right_main.php index bcac2510..7223cacf 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -53,6 +53,7 @@ sqgetGlobalVar('lastTargetMailbox', $lastTargetMailbox, SQ_SESSION); sqgetGlobalVar('numMessages' , $numMessages, SQ_SESSION); sqgetGlobalVar('session', $session, SQ_GET); sqgetGlobalVar('note', $note, SQ_GET); +sqgetGlobalVar('mail_sent', $mail_sent, SQ_GET); sqgetGlobalVar('use_mailbox_cache', $use_mailbox_cache, SQ_GET); if ( sqgetGlobalVar('startMessage', $temp) ) { @@ -154,6 +155,11 @@ if ($composenew) { displayPageHeader($color, $mailbox); } do_hook('right_main_after_header'); + +/* display a message to the user that their mail has been sent */ +if (isset($mail_sent) && $mail_sent == 'yes') { + $note = _("Your Message has been sent."); +} if (isset($note)) { echo html_tag( 'div', '' . $note .'', 'center' ) . "
\n"; }