Permalink
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...
tomhukins committed Sep 21, 2013
1 parent b057fde commit 8f9226974ce14de6524ea1a52940c8a772df0a51
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 8f92269

Please sign in to comment.