Use userControl regexp to validate mail reset input (#461)

This commit is contained in:
Clément Oudot 2012-04-24 13:22:05 +00:00
parent 735654219c
commit 722efce84a

View File

@ -124,6 +124,11 @@ sub extractMailInfo {
$self->{mail} = $self->param('mail');
}
$self->{userControl} ||= '^[\w\.\-@]+$';
# Check mail
return PE_MALFORMEDUSER unless ( $self->{mail} =~ /$self->{userControl}/o );
PE_OK;
}