summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2013-04-17 19:06:16 +0200
committerYorhel <git@yorhel.nl>2013-04-17 19:06:16 +0200
commitaf1571a78652ef24f17cb38627902261c2af170d (patch)
treeed1bc0265627e6cad181608306b34fbd24cfaa43 /util
parentf8b85e6d0aa29e6d670df9f19af07d4f4a6e29b2 (diff)
Fix form validation bug on /u*/posts + disallow space in email field
Diffstat (limited to 'util')
-rwxr-xr-xutil/vndb.pl2
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]+$/ },