Bugzilla – Attachment 127525 Details for
Bug 28870
Cart shipping fails because of Non-ASCII characters in display-name of reply-to address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
21.05.x: Bug 28870: Use Email::Address->parse
0005-Bug-28870-Use-Email-Address-parse.patch (text/plain), 956 bytes, created by
Michael Hafen
on 2021-11-10 23:33:46 UTC
(
hide
)
Description:
21.05.x: Bug 28870: Use Email::Address->parse
Filename:
MIME Type:
Creator:
Michael Hafen
Created:
2021-11-10 23:33:46 UTC
Size:
956 bytes
patch
obsolete
>From 15f376f91f6be46a00dc5c82552957bb7058aba9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 26 Aug 2021 17:13:41 +0200 >Subject: [PATCH 5/6] Bug 28870: Use Email::Address->parse >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > Koha/Email.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Email.pm b/Koha/Email.pm >index dcf674dacd..b0cdc6cd23 100644 >--- a/Koha/Email.pm >+++ b/Koha/Email.pm >@@ -195,7 +195,8 @@ Return true is the email address passed in parameter is valid following RFC 2822 > > sub is_valid { > my ( $class, $email ) = @_; >- return ($email =~ m{$Email::Address::mailbox}) ? 1 : 0; >+ my @addrs = Email::Address->parse($email); >+ return @addrs ? 1 : 0; > } > > 1; >-- >2.25.1 >
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 28870
:
124002
|
124003
|
124004
|
124117
|
124118
|
124119
|
124178
|
124179
|
124180
|
124183
|
124184
|
124185
|
124752
|
124753
|
124754
|
124755
|
124756
|
124757
|
124762
|
124763
|
124764
|
124765
|
124766
|
124767
|
127521
|
127522
|
127523
|
127524
| 127525 |
127526
|
127745
|
127746
|
127747
|
127748
|
127749
|
127750