summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-03-06 20:21:08 -0800
committerIvan Kohler <ivan@freeside.biz>2017-03-06 20:21:08 -0800
commitace5df96f846d02ef044d67c89667d7d23c47f75 (patch)
tree436ee768f9e925bdea381a9eb3c2a5d4b9c98997
parentb3a7f5819aab1d878a68dd85174fe934ab66c026 (diff)
fix (well, kludge around) =?UTF-8 Subject:, RT#37098
-rw-r--r--httemplate/misc/email-customers.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html
index 981d0e6da..0ed5ef380 100644
--- a/httemplate/misc/email-customers.html
+++ b/httemplate/misc/email-customers.html
@@ -355,7 +355,11 @@ if ( !$cgi->param('preview') ) {
my $cust_msg = $msg_template->prepare(%msgopts);
$from = $cust_msg->env_from;
$html_body = $cust_msg->preview;
- if ( $cust_msg->header =~ /^subject: (.*)/mi ) {
+#hmm. this came in with the #37098 rewrite, but isn't on v3 :/
+# causing problems with mangling subject of unrelated things
+# should probably decode instead of ignore the UTF-8 thing, but
+# this at least masks the ugliness for now :/
+ if ( $cust_msg->header =~ /^subject: (.*)/mi && $1 !~ /^\=\?UTF-8/ ) {
$subject = $1;
}
}