summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-22 11:07:20 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-22 11:07:20 +0200
commit0a1dd5b073f0dfc42439ab168246ae0ae6921414 (patch)
tree4967fccc177fe289e4311cc55477559cb32d1969 /program/steps
parent5a575b7eb08fb9f254f46eb340cbedb0c839446e (diff)
Add is_escaped attribute for html_select and html_textarea (#1488485)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc1
-rw-r--r--program/steps/settings/edit_identity.inc3
2 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 47d97faad..374a87649 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -772,6 +772,7 @@ function rcmail_compose_body($attrib)
if ($isHtml) {
$MESSAGE_BODY = htmlentities($MESSAGE_BODY, ENT_NOQUOTES, RCMAIL_CHARSET);
$attrib['class'] = 'mce_editor';
+ $attrib['is_escaped'] = true;
$textarea = new html_textarea($attrib);
$out .= $textarea->show($MESSAGE_BODY);
}
diff --git a/program/steps/settings/edit_identity.inc b/program/steps/settings/edit_identity.inc
index c3ac4688f..2a2616540 100644
--- a/program/steps/settings/edit_identity.inc
+++ b/program/steps/settings/edit_identity.inc
@@ -88,7 +88,8 @@ function rcube_identity_form($attrib)
// Enable TinyMCE editor
if ($IDENTITY_RECORD['html_signature']) {
- $form['signature']['content']['signature']['class'] = 'mce_editor';
+ $form['signature']['content']['signature']['class'] = 'mce_editor';
+ $form['signature']['content']['signature']['is_escaped'] = true;
}
$IDENTITY_RECORD['signature'] = htmlentities($IDENTITY_RECORD['signature'], ENT_NOQUOTES, RCMAIL_CHARSET);