From 5c7e54b1756367a502367a2918a77fdb3dba4ee2 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 22 May 2012 03:06:02 -0400
Subject: [PATCH] - Fix HTML entities handling in HTML editor (#1488483)

---
 program/steps/mail/compose.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index c0a5bf7..47d97fa 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -770,6 +770,7 @@
 
   // 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);

--
Gitblit v1.9.1