Skip to content

Commit

Permalink
Item5352: yes, i did lose the . from the regex
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@2062 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jan 20, 2009
1 parent 3483601 commit d151523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/lib/Foswiki.pm
Expand Up @@ -400,7 +400,7 @@ qr/[$regex{upperAlpha}]+[$regex{lowerAlphaNum}]+[$regex{upperAlpha}]+[$regex{mix
qr/(?:(?:$regex{wikiWordRegex})|(?:$regex{abbrevRegex}))/o;
# Simplistic email regex, e.g. for WebNotify processing - no i18n
# characters allowed
$regex{emailAddrRegex} = qr/([a-z0-9!+$%&'*+-\/=?^_`{|}~]+\@[a-z0-9\.\-]+)/i;
$regex{emailAddrRegex} = qr/([a-z0-9!+$%&'*+-\/=?^_`{|}~.]+\@[a-z0-9\.\-]+)/i;

# Filename regex to used to match invalid characters in attachments - allow
# alphanumeric characters, spaces, underscores, etc.
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Checkers/WebMasterEmail.pm
Expand Up @@ -17,7 +17,7 @@ sub check {
}
# $regex{emailAddrRegex} ...
if ( $Foswiki::cfg{WebMasterEmail} !~
/^([a-z0-9!+$%&'*+-\/=?^_`{|}~]+\@[a-z0-9\.\-]+)$/i )
/^([a-z0-9!+$%&'*+-\/=?^_`{|}~.]+\@[a-z0-9\.\-]+)$/i )
{
return $this->WARN('I don\'t recognise this as a valid email address.');
}
Expand Down

0 comments on commit d151523

Please sign in to comment.