From 72bf96f64100e1ea556f29ee7b01cb83aa4dfab8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 26 Aug 2021 17:21:32 +0200 Subject: [PATCH] Bug 28870: non-FQDN addresses are valid Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall (cherry picked from commit 8883409e0acd4f703d765389128c8dffe3ff9052) Signed-off-by: Fridolin Somers --- t/Koha/Email.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/Koha/Email.t b/t/Koha/Email.t index 0a1295d68a..0d12016725 100755 --- a/t/Koha/Email.t +++ b/t/Koha/Email.t @@ -259,10 +259,10 @@ subtest 'is_valid' => sub { is(Koha::Email->is_valid('Fróm '), 1); is(Koha::Email->is_valid('from@example.com'), 1); is(Koha::Email->is_valid(''), 1); + is(Koha::Email->is_valid('root@localhost'), 1); # See bug 28017 is(Koha::Email->is_valid(''), 0); # "In accordance with RFC 822 and its descendants, this module demands that email addresses be ASCII only" isnt(Koha::Email->is_valid('@example.com'), 1); isnt(Koha::Email->is_valid('example.com'), 1); - isnt(Koha::Email->is_valid('root@localhost'), 1); isnt(Koha::Email->is_valid('from'), 1); }; -- 2.39.5