summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-22 09:06:02 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-22 09:06:58 +0200
commit550bf0d14b5ab70beb088611cd2fc1d239c104e3 (patch)
tree6e8d472d87fa4067eb1ab816c64e0f8f52969b29 /program/steps/mail
parent6f62715f9d9f69a052a9a61674f7cc36b7c63feb (diff)
- Fix HTML entities handling in HTML editor (#1488483)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/compose.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index ebf79be4e..8152f5dca 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -770,6 +770,7 @@ function rcmail_compose_body($attrib)
// If desired, set this textarea to be editable by TinyMCE
if ($isHtml) {
+ $MESSAGE_BODY = htmlentities($MESSAGE_BODY, ENT_NOQUOTES, RCMAIL_CHARSET);
$attrib['class'] = 'mce_editor';
$textarea = new html_textarea($attrib);
$out .= $textarea->show($MESSAGE_BODY);