forward porting email fix from 7.4

This commit is contained in:
Colin Kuskie 2008-05-11 04:39:55 +00:00
parent 7dc385b362
commit 3ae4c8692b

View file

@ -65,7 +65,7 @@ An optional value to process instead of POST input.
sub getValue {
my $self = shift;
my $value = @_ ? shift : $self->session->form->param($self->get("name"));
if ($value =~ /^[0-9a-z,_%+-]+@(?:[0-9a-z-]+\.)+[a-z]{2,9}$/i) {
if ($value =~ /^[0-9a-z._%+-]+@(?:[0-9a-z-]+\.)+[a-z]{2,9}$/i) {
return $value;
}
return undef;