Avoid warnings for Qpsmtpd::Address->new(undef)
This commit is contained in:
parent
562fa951d0
commit
ba659461b5
@ -56,7 +56,10 @@ use overload (
|
|||||||
sub new {
|
sub new {
|
||||||
my ($class, $user, $host) = @_;
|
my ($class, $user, $host) = @_;
|
||||||
my $self = {};
|
my $self = {};
|
||||||
if ($user =~ /^<(.*)>$/) {
|
if (! defined $user) {
|
||||||
|
# Do nothing
|
||||||
|
}
|
||||||
|
elsif ($user =~ /^<(.*)>$/) {
|
||||||
($user, $host) = $class->canonify($user);
|
($user, $host) = $class->canonify($user);
|
||||||
return if !defined $user;
|
return if !defined $user;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user