Skip Menu |

This queue is for tickets about the WWW-FieldValidator CPAN distribution.

Report information
The Basics
Id: 14001
Status: resolved
Worked: 5 min
Priority: 0/
Queue: WWW-FieldValidator

People
Owner: SHLOMIF [...] cpan.org
Requestors: tom.kirkpatrick [...] virusbtn.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: email validation rule
The email validation rule does not accept the character '-' in the domain portion. eg 'tom@test-one.com' will fail.
RT-Send-CC: shlomif [...] vipe.technion.ac.il
Yeah, the email validator isn't very robust. As a workaround, you can have your form field use a validator type of USER_DEFINED_SUB instead of WELL_FORMED_EMAIL. The USER_DEFINED_SUB is farily useful since it lets you plugin your own arbitraty validations. You could have a user-defined validation sub that uses Email::Valid under the hood to validate any inputs that are required to be email addresses. You could also use the REGEX_MATCH type to supply your own regular expression pattern for validating email addresses. Shlomi Fish is currently the primary maintainer of WWW::Form and WWW::FieldValidator, so you can pass ideas along his way as well as mine. [guest - Wed Aug 3 10:30:52 2005]: Show quoted text
> The email validation rule does not accept the character '-' in the > domain portion. eg 'tom@test-one.com' will fail.
Fixed in the WWW-Form version now.