summaryrefslogtreecommitdiff
path: root/util/vndb.pl
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-04-30 10:35:53 +0200
committerYorhel <git@yorhel.nl>2011-04-30 10:35:53 +0200
commita3ff39b6269cb7114f0edee6a1f5fdb6dd163d40 (patch)
treeacf931218cb4cca81c2db058e2f400d93ce7c939 /util/vndb.pl
parent9b6da49f834d6f52604e460f14ca2cc690973f67 (diff)
Bugfix: Don't allow unicode numbers as 'int' in formValidate
Stuff like "168" went through earlier, but couldn't be interpreted by either perl or postgresql.
Diffstat (limited to 'util/vndb.pl')
-rwxr-xr-xutil/vndb.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/vndb.pl b/util/vndb.pl
index b6056dd4..765138fe 100755
--- a/util/vndb.pl
+++ b/util/vndb.pl
@@ -52,7 +52,7 @@ TUWF::set(
mail => { regex => qr/^[^@<>]+@[^@.<>]+(?:\.[^@.<>]+)+$/ },
url => { regex => qr/^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?$/ },
asciiprint => { regex => qr/^[\x20-\x7E]*$/ },
- int => { regex => qr/^-?\d+$/ },
+ int => { regex => qr/^-?[0-9]+$/ },
pname => { regex => qr/^[a-z0-9-]*$/ },
},
);