git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2420
7612ce4b-ef26-0410-bec9-
ea0150e637f0
if (! isset($reply_id)) {
$reply_id = 0;
}
if (! isset($reply_id)) {
$reply_id = 0;
}
- if (! isset($MDN)) {
- $MDN = 'False';
+ if (! isset($MDN)) {
+ $MDN = 'False';
}
if (!saveMessageAsDraft($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id, $MDN)) {
showInputForm();
}
if (!saveMessageAsDraft($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id, $MDN)) {
showInputForm();
$draft_message = _("Draft Email Saved");
/* If this is a resumed draft, then delete the original */
if(isset($delete_draft)) {
$draft_message = _("Draft Email Saved");
/* If this is a resumed draft, then delete the original */
if(isset($delete_draft)) {
- Header("Location: delete_message.php?mailbox=$draft_folder".
+ Header("Location: delete_message.php?mailbox=" . urlencode($draft_folder) .
"&message=$delete_draft&sort=$sort&startMessage=1&saved_draft=yes");
exit();
"&message=$delete_draft&sort=$sort&startMessage=1&saved_draft=yes");
exit();
else {
if ($compose_new_win == '1') {
Header("Location: compose.php?saved_draft=yes");
else {
if ($compose_new_win == '1') {
Header("Location: compose.php?saved_draft=yes");
}
/*
* Set $default_charset to correspond with the user's selection
}
/*
* Set $default_charset to correspond with the user's selection
- * of language interface.
+ * of language interface.
*/
set_my_charset();
/*
* This is to change all newlines to \n
*/
set_my_charset();
/*
* This is to change all newlines to \n
- * We'll change them to \r\n later (in the sendMessage function)
+ * We'll change them to \r\n later (in the sendMessage function)
*/
$body = str_replace("\r\n", "\n", $body);
$body = str_replace("\r", "\n", $body);
*/
$body = str_replace("\r\n", "\n", $body);
$body = str_replace("\r", "\n", $body);
* Rewrap $body so that no line is bigger than $editor_size
* This should only really kick in the sqWordWrap function
* if the browser doesn't support "HARD" as the wrap type
* Rewrap $body so that no line is bigger than $editor_size
* This should only really kick in the sqWordWrap function
* if the browser doesn't support "HARD" as the wrap type
- * Or, in Opera's case, something goes wrong.
+ * Or, in Opera's case, something goes wrong.
*/
$body = explode("\n", $body);
$newBody = '';
*/
$body = explode("\n", $body);
$newBody = '';
exit();
}
if ( isset($delete_draft)) {
exit();
}
if ( isset($delete_draft)) {
- Header("Location: delete_message.php?mailbox=$draft_folder".
+ Header("Location: delete_message.php?mailbox=" . urlencode( $draft_folder ).
"&message=$delete_draft&sort=$sort&startMessage=1&mail_sent=yes");
exit();
}
"&message=$delete_draft&sort=$sort&startMessage=1&mail_sent=yes");
exit();
}
}
$location = get_location();
}
$location = get_location();
if (isset($where) && isset($what)) {
header("Location: $location/search.php?where=" . urlencode($where) .
'&what=' . urlencode($what) . '&mailbox=' . urlencode($mailbox));
if (isset($where) && isset($what)) {
header("Location: $location/search.php?where=" . urlencode($where) .
'&what=' . urlencode($what) . '&mailbox=' . urlencode($mailbox));