WebGUI
      Click here to register.
      
PBWG Banner


     Report a Bug > WebGUI Bug Tracker

E-mail validator does not allow valid addresses

User Vitkovsky
Date 4/17/2008 11:21 am
Severity Minor (annoying, but not harmful)
Version WebGUI Stable 7.4.33
Views 147
Rating 0    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
Vitkovsky

Adresses like abc.name@domain.com does not allow.

Offer to use in the package WebGUI::Form::Email:

use Email::Valid;

and line 86

 if ($value =~ /^[0-9a-z,_%+-]+@(?:[0-9a-z-]+\.)+[a-z]{2,9}$/i) {

will be like:

 if (Email::Valid->address($value)) {


Vladimir Vitkovsky
http://www.webgui.uanet.biz/
http://web-octopus.com
http://www.transport.su/

 



Back to Top
Rate [
|
]
 
 
Graham

This was just a typo in the Regex.  Fixed for next release.



Back to Top
Rate [
|
]