Use userControl regexp to validate mail reset input (#461)
This commit is contained in:
parent
735654219c
commit
722efce84a
|
@ -124,6 +124,11 @@ sub extractMailInfo {
|
||||||
$self->{mail} = $self->param('mail');
|
$self->{mail} = $self->param('mail');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$self->{userControl} ||= '^[\w\.\-@]+$';
|
||||||
|
|
||||||
|
# Check mail
|
||||||
|
return PE_MALFORMEDUSER unless ( $self->{mail} =~ /$self->{userControl}/o );
|
||||||
|
|
||||||
PE_OK;
|
PE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user