[Koha-bugs] [Bug 28870] New: Cart shipping fails because of Non-ASCII characters in display-name of reply-to address

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 17 14:23:28 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28870

            Bug ID: 28870
           Summary: Cart shipping fails because of Non-ASCII characters in
                    display-name of reply-to address
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: ulrich.kleiber at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org

After the upgrade from 18.11 to 20.11, users with non-ASCII characters (e.g.
German umlauts) in their first name or surname can no longer send shopping
carts because the newly introduced email address validation of the create
function of Email.pm fails.

A possible solution would be to omit the display name generated from first name
and surname in opac-sendbasket.pl.

diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl
index 55dc7546bc..c4dee93e3d 100755
--- a/opac/opac-sendbasket.pl
+++ b/opac/opac-sendbasket.pl
@@ -59,7 +59,7 @@ if ( $email_add ) {
     my $user_email = $patron->first_valid_email_address
     || C4::Context->preference('KohaAdminEmailAddress');

-    my $email_replyto = $patron->firstname . " " . $patron->surname . "
<$user_email>";
+    my $email_replyto = $user_email;
     my $comment    = $query->param('comment');

     # Since we are already logged in, no need to check credentials again

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list