projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3a7f58
)
fix (well, kludge around) =?UTF-8 Subject:, RT#37098
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 7 Mar 2017 04:21:08 +0000
(20:21 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 7 Mar 2017 04:21:08 +0000
(20:21 -0800)
httemplate/misc/email-customers.html
patch
|
blob
|
history
diff --git
a/httemplate/misc/email-customers.html
b/httemplate/misc/email-customers.html
index
981d0e6
..
0ed5ef3
100644
(file)
--- 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;
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;
}
}
$subject = $1;
}
}