diff options
author | Yorhel <git@yorhel.nl> | 2013-04-17 19:06:16 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2013-04-17 19:06:16 +0200 |
commit | af1571a78652ef24f17cb38627902261c2af170d (patch) | |
tree | ed1bc0265627e6cad181608306b34fbd24cfaa43 /util | |
parent | f8b85e6d0aa29e6d670df9f19af07d4f4a6e29b2 (diff) |
Fix form validation bug on /u*/posts + disallow space in email field
Diffstat (limited to 'util')
-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 765138fe..797f56ea 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/^[^@<>]+@[^@.<>]+(?:\.[^@.<>]+)+$/ }, + 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]+$/ }, |