From 696fc0ff22fac839e97b9f9caddda99ff89d9ffc Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 18 Apr 2009 18:25:42 -0500 Subject: [PATCH] bug 3141: use quoted printable encoding in cart/list emails Ensure that emails sent from lists and the cart in the OPAC have the correct quoted-printable encoding. Otherwise, if there is an equals sign followed by one or two characters that look like hexadecimal digits in body of the email, the results can look mangled in some email clients. Signed-off-by: Galen Charlton --- opac/opac-sendbasket.pl | 2 +- opac/opac-sendshelf.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl index 5e75dbfdc4..f17bb71657 100755 --- a/opac/opac-sendbasket.pl +++ b/opac/opac-sendbasket.pl @@ -118,7 +118,7 @@ if ( $email_add ) { $email_file = $1; } - if ( $template_res =~ /\n(.*)\n/s ) { $body = $1; } + if ( $template_res =~ /\n(.*)\n/s ) { $body = encode_qp($1); } my $boundary = "====" . time() . "===="; diff --git a/opac/opac-sendshelf.pl b/opac/opac-sendshelf.pl index 340a41c151..dc9d2b0838 100755 --- a/opac/opac-sendshelf.pl +++ b/opac/opac-sendshelf.pl @@ -124,7 +124,7 @@ if ( $email ) { $email_file = $1; } - if ( $template_res =~ /\n(.*)\n/s ) { $body = $1; } + if ( $template_res =~ /\n(.*)\n/s ) { $body = encode_qp($1); } my $boundary = "====" . time() . "===="; -- 2.39.5