diff options
author | Yorhel <git@yorhel.nl> | 2014-07-09 16:03:06 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-07-09 16:03:06 +0200 |
commit | 578d8e9ced5511e7165216296113fcd837037ee7 (patch) | |
tree | 4e17c5dd774b86e3b9965f271d25a84fdabaddd7 | |
parent | 79456a389acabf4bf0d74e75bbede9f0fc0d6ba0 (diff) |
Disallow comma in email pattern match
-rwxr-xr-x | util/vndb.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index a9ca9f61..1ba37d1c 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -49,7 +49,7 @@ TUWF::set( log_format => \&logformat, # for compatibility with YAWF validate_templates => { - mail => { regex => qr/^[^@<>\s]+@[^@.<>\s]+(?:\.[^@.<>\s]+)+$/ }, + mail => { regex => qr/^[^@<>\s,]+@[^@.<>\s,]+(?:\.[^@.<>\s,]+)+$/ }, url => { regex => qr/^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+\*#]*[\w\-\@?^=%&\/~\+#\*])?$/ }, asciiprint => { regex => qr/^[\x20-\x7E]*$/ }, int => { regex => qr/^-?[0-9]+$/ }, |