From 8c0b9edb5112955a0aafce5bd74e24ef028c5aec Mon Sep 17 00:00:00 2001 From: svncommit Date: Thu, 21 Aug 2008 13:09:08 +0000 Subject: [PATCH] change to double-escape to get through TinyMCE's cleanup #1484904 --- program/steps/mail/compose.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 8a9a383d5..ba3cc7d3e 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -458,7 +458,7 @@ function rcmail_compose_body($attrib) function rcmail_create_reply_body($body, $bodyIsHtml) { - global $IMAP, $MESSAGE; + global $IMAP, $MESSAGE, $OUTPUT; if (! $bodyIsHtml) { @@ -496,7 +496,7 @@ function rcmail_create_reply_body($body, $bodyIsHtml) { $prefix = sprintf("

On %s, %s wrote:
\n", $MESSAGE->headers->date, - Q($MESSAGE->get_header('from'), 'replace')); + htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); $prefix .= '
'; $suffix = "
"; } @@ -507,7 +507,7 @@ function rcmail_create_reply_body($body, $bodyIsHtml) function rcmail_create_forward_body($body, $bodyIsHtml) { - global $IMAP, $MESSAGE; + global $IMAP, $MESSAGE, $OUTPUT; if (!$bodyIsHtml) { @@ -532,8 +532,8 @@ function rcmail_create_forward_body($body, $bodyIsHtml) "
", Q($MESSAGE->subject), Q($MESSAGE->headers->date), - Q($MESSAGE->get_header('from'), 'replace'), - Q($MESSAGE->get_header('to'), 'replace')); + htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true), + htmlspecialchars(Q($MESSAGE->get_header('to'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); } // add attachments