Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure validation checks the specified address

If the 'email_valid_params' contains a field with the key '-address',
always override that value with the value from the form field.
  • Loading branch information...
commit 8f9226974ce14de6524ea1a52940c8a772df0a51 1 parent b057fde
@tomhukins tomhukins authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/HTML/FormHandler/Field/Email.pm
View
2  lib/HTML/FormHandler/Field/Email.pm
@@ -33,8 +33,8 @@ apply(
check => sub {
my ( $value, $field ) = @_;
my $checked = Email::Valid->address(
- -address => $value,
%{ $field->email_valid_params || {} },
+ -address => $value,
);
$field->value($checked)
if $checked;
Please sign in to comment.
Something went wrong with that request. Please try again.