summaryrefslogtreecommitdiff
path: root/program/steps/mail/headers.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-10-12 16:06:33 +0000
committeralecpl <alec@alec.pl>2009-10-12 16:06:33 +0000
commit1a00f138c6d6903d7fc51dca4ef46dd675aec9fa (patch)
treed2fe17758dd3272017791c586598976c1a714459 /program/steps/mail/headers.inc
parent91354e90e81ee9d23633d37b18bd680bc4d459e5 (diff)
- Fix IE issue with non-UTF-8 characters in AJAX response (#1486159)
Diffstat (limited to 'program/steps/mail/headers.inc')
-rw-r--r--program/steps/mail/headers.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/steps/mail/headers.inc b/program/steps/mail/headers.inc
index 653fb9647..4e3f969bd 100644
--- a/program/steps/mail/headers.inc
+++ b/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);