From a4c970508b899fd9e467b33319d689470908a24c Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Sun, 14 Nov 2010 05:09:14 -0500 Subject: [PATCH] - Re-fix handling of html entity strings in plain/text messages --- program/steps/mail/func.inc | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 747dce5..c7498d5 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -831,8 +831,12 @@ $quote_level = $q; } - // quote plain text - $body = Q(join("\n", $a_lines), 'dummy', false); + $body = join("\n", $a_lines); + + // quote plain text (don't use Q() here, to display entities "as is") + $table = get_html_translation_table(HTML_SPECIALCHARS); + unset($table['?']); + $body = strtr($body, $table); // colorize signature (up to <sig_max_lines> lines) $len = strlen($body); -- Gitblit v1.9.1