summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/headers.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-12 16:06:33 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-10-12 16:06:33 +0000
commitd6832b4ade38590692ea26805c62111f5bcfb8f7 (patch)
tree601b97ef491b235870f08cf2bb75354cb693d019 /roundcubemail/program/steps/mail/headers.inc
parent42a052472943ecd1d56764f457ae740d23d65bc5 (diff)
- Fix IE issue with non-UTF-8 characters in AJAX response (#1486159)
git-svn-id: https://svn.roundcube.net/trunk@3036 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/headers.inc')
-rw-r--r--roundcubemail/program/steps/mail/headers.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/headers.inc b/roundcubemail/program/steps/mail/headers.inc
index 653fb9647..4e3f969bd 100644
--- a/roundcubemail/program/steps/mail/headers.inc
+++ b/roundcubemail/program/steps/mail/headers.inc
@@ -24,6 +24,11 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_POST))
if ($source)
{
+ $browser = new rcube_browser;
+
+ if ($browser->ie)
+ $source = rc_utf8_clean($source);
+
$source = htmlspecialchars(trim($source));
$source = preg_replace('/\t/', '&nbsp;&nbsp;&nbsp;&nbsp;', $source);
$source = preg_replace('/^([a-z0-9_:-]+)/im', '<font class="bold">'.'\1'.'</font>', $source);