Bugzilla – Attachment 21428 Details for
Bug 10605
Problems with translated cart email sent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-10605-Problems-with-translated-cart-email-sent-f.patch (text/plain), 1.67 KB, created by
Frédéric Demians
on 2013-09-24 16:49:33 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2013-09-24 16:49:33 UTC
Size:
1.67 KB
patch
obsolete
>From 4ee660a2de3de36c3bc5298edd098a56defc1d81 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Tue, 24 Sep 2013 18:48:30 +0200 >Subject: [PATCH] Bug 10605 Problems with translated cart email sent from OPAC > >THis patch suppress a double-encoding. >--- > opac/opac-sendbasket.pl | 22 ++++++---------------- > 1 files changed, 6 insertions(+), 16 deletions(-) > >diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl >index da74745..bba301a 100755 >--- a/opac/opac-sendbasket.pl >+++ b/opac/opac-sendbasket.pl >@@ -124,27 +124,17 @@ if ( $email_add ) { > > # Getting template result > my $template_res = $template2->output(); >- my $body; > > # Analysing information and getting mail properties >- if ( $template_res =~ /<SUBJECT>\n(.*)\n?<END_SUBJECT>/s ) { >- $mail{'subject'} = $1; >- } >- else { $mail{'subject'} = "no subject"; } >+ $mail{subject} = $template_res =~ /<SUBJECT>\n(.*)\n?<END_SUBJECT>/s >+ ? $1 : "no subject"; > >- my $email_header = ""; >- if ( $template_res =~ /<HEADER>\n(.*)\n?<END_HEADER>/s ) { >- $email_header = encode_qp($1); >- } >+ my ($email_header) = $template_res =~ /<HEADER>\n(.*)\n?<END_HEADER>/s; > >- my $email_file = "basket.txt"; >- if ( $template_res =~ /<FILENAME>\n(.*)\n?<END_FILENAME>/s ) { >- $email_file = $1; >- } >+ my $email_file = $template_res =~ /<FILENAME>\n(.*)\n?<END_FILENAME>/s >+ ? $1 : "basket.txt"; > >- if ( $template_res =~ /<MESSAGE>\n(.*)\n?<END_MESSAGE>/s ) { >- $body = encode_qp($1); >- } >+ my ($body) = $template_res =~ /<MESSAGE>\n(.*)\n?<END_MESSAGE>/s; > > my $boundary = "====" . time() . "===="; > >-- >1.7.2.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 10605
:
21428
|
22925
|
22926
|
22996
|
22998
|
22999
|
23018
|
23019
|
23044
|
23045
|
23046