Permalink
Browse files

Another odd issue in the regex that was updated recently for allowing…

… single quotes in email addresses. Apparently anchoring the start and end of the regex was causing nothing to match. Removed the anchors but left the single quote option in place.
  • Loading branch information...
1 parent 5e626d5 commit 5d923f7f5772b0673f928cbab0567d9013bbb3d7 @jaredbischof jaredbischof committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/WebApplication/WebComponent/Register.pm
@@ -212,7 +212,7 @@ sub perform_registration {
}
# check if email address is valid
- unless ($cgi->param('email') =~ /^[\d\w\.\'-]+\@[\d\w\.-]+\.[\w+]$/) {
+ unless ($cgi->param('email') =~ /[\d\w\.\'-]+\@[\d\w\.-]+\.[\w+]/) {
$application->add_message('warning', 'You must enter a valid eMail address.');
return 0;
}

0 comments on commit 5d923f7

Please sign in to comment.