summaryrefslogtreecommitdiff
path: root/util/vndb.pl
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-09-20 21:08:54 +0200
committerYorhel <git@yorhel.nl>2015-09-20 21:08:54 +0200
commitb5c3aa020836541ef2e94812ab83e73de364abe4 (patch)
tree1f9d2a259b05ecbc3d3ebebdcfddd57edeed2c2e /util/vndb.pl
parent3070caa6043101bae8fddc297c4152a2f3832b29 (diff)
formValidate(): Let's just allow a '0' id - fix more errors
Looks like 0 is actually used often to indicate some special value. Affects basically all 'check all' boxes (had to modify some of those boxes because some used -1, but that wasn't a problem).
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 30cdecbe..ca731ca2 100755
--- a/util/vndb.pl
+++ b/util/vndb.pl
@@ -50,7 +50,7 @@ TUWF::set(
error_404_handler => \&handle404,
log_format => \&logformat,
validate_templates => {
- id => { template => 'uint', min => 1, max => 1<<40 },
+ id => { template => 'uint', max => 1<<40 },
page => { template => 'uint', max => 1000 },
uname => { regex => qr/^[a-z0-9-]*$/, minlength => 2, maxlength => 15 },
gtin => { func => \&gtintype },