forward porting email fix from 7.4
This commit is contained in:
parent
7dc385b362
commit
3ae4c8692b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue