Bugzilla – Attachment 11594 Details for
Bug 8626
Encoding problem with = in cart emails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8626: Fix encoding in cart emails for use of quoted-printable
Bug-8626-Fix-encoding-in-cart-emails-for-use-of-qu.patch (text/plain), 1.55 KB, created by
Katrin Fischer
on 2012-08-14 06:39:31 UTC
(
hide
)
Description:
Bug 8626: Fix encoding in cart emails for use of quoted-printable
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-08-14 06:39:31 UTC
Size:
1.55 KB
patch
obsolete
>From a20864ef76dfd6853ed178275561cbf98167953a Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Tue, 14 Aug 2012 08:02:59 +0200 >Subject: [PATCH] Bug 8626: Fix encoding in cart emails for use of > quoted-printable > >When using quoted-printable data needs to be encoded accordingly. > >Content-Transfer-Encoding: quoted-printable > >Without the patch = in URLs or data will be interpreted as the beginning >of a special character resulting in broken URLs. > >To test: >- Check diacritics in records display correctly >- Check various URLs with = to make sure they all work correctly >--- > opac/opac-sendbasket.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl >index 5b38a54..156e859 100755 >--- a/opac/opac-sendbasket.pl >+++ b/opac/opac-sendbasket.pl >@@ -128,13 +128,13 @@ if ( $email_add ) { > > # Analysing information and getting mail properties > if ( $template_res =~ /<SUBJECT>\n(.*)\n?<END_SUBJECT>/s ) { >- $mail{'subject'} = $1; >+ $mail{'subject'} = encode_qp($1); > } > else { $mail{'subject'} = "no subject"; } > > my $email_header = ""; > if ( $template_res =~ /<HEADER>\n(.*)\n?<END_HEADER>/s ) { >- $email_header = $1; >+ $email_header = encode_qp($1); > } > > my $email_file = "basket.txt"; >@@ -143,7 +143,7 @@ if ( $email_add ) { > } > > if ( $template_res =~ /<MESSAGE>\n(.*)\n?<END_MESSAGE>/s ) { >- $body = $1; >+ $body = encode_qp($1); > } > > my $boundary = "====" . time() . "===="; >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8626
:
11594
|
11610