diff options
author | Yorhel <git@yorhel.nl> | 2015-09-20 15:12:05 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-09-20 15:12:05 +0200 |
commit | bb7a7cc178144457d401c3c6479a41788cf681dd (patch) | |
tree | 40bd705081da74c2e665d0c7552dad2c34bcb43c /util | |
parent | 28681f6b12b1d8958ae1d792bb831120530de15a (diff) |
formValidate: Created templates for gtin and editsum fields
Diffstat (limited to 'util')
-rwxr-xr-x | util/vndb.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index 88281da9..9a3663a9 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -17,6 +17,7 @@ use lib $ROOT.'/lib'; use TUWF ':html'; use VNDB::L10N; +use VNDBUtil 'gtintype'; use SkinFile; @@ -51,6 +52,8 @@ TUWF::set( id => { template => 'uint', min => 1, max => 1<<40 }, page => { template => 'uint', max => 1000 }, uname => { regex => qr/^[a-z0-9-]*$/, minlength => 2, maxlength => 15 }, + gtin => { func => \>intype }, + editsum => { maxlength => 5000, minlength => 2 }, }, ); TUWF::load_recursive('VNDB::Util', 'VNDB::DB', 'VNDB::Handler'); |