Bug 28870: non-FQDN addresses are valid
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> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
27affe637a
commit
1ac673e705
1 changed files with 1 additions and 1 deletions
|
@ -255,10 +255,10 @@ subtest 'is_valid' => sub {
|
|||
is(Koha::Email->is_valid('Fróm <from@example.com>'), 1);
|
||||
is(Koha::Email->is_valid('from@example.com'), 1);
|
||||
is(Koha::Email->is_valid('<from@example.com>'), 1);
|
||||
is(Koha::Email->is_valid('root@localhost'), 1); # See bug 28017
|
||||
|
||||
is(Koha::Email->is_valid('<from@fróm.com>'), 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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue