From 6a8a4f077b5739d4732789386abc2148864512b3 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 7 Jan 2015 18:22:22 -0500 Subject: [PATCH] LP#1031335 No-op the escape_email_header helper As suggested by Mike Rylander, keep the escape_email_header helper around to avoid breaking templates that already adopted it, but make it a no-op as the SendEmail reactor now encodes the email headers of interest by default. Signed-off-by: Dan Scott Signed-off-by: Dan Wells --- .../src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm index dd23448dbc..7b96edb7d8 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm @@ -71,9 +71,11 @@ $_TT_helpers = { }, # encode email headers in UTF-8, per RFC2231 + # now a no-op as we automatically encode the headers in the SendEmail + # reactor, but we need to leave this here to avoid breaking templates + # that might have once used it escape_email_header => sub { my $str = shift; - $str = encode("MIME-Header", $str); return $str; }, -- 2.43.2