summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Affiliates.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-09-20 08:47:07 +0200
committerYorhel <git@yorhel.nl>2015-09-20 08:47:07 +0200
commit940b089ea5f02ef9bc80b4b82c320c4e9d2dbb34 (patch)
tree4c9be57fb3a07e8e04b5714623e6f7a40fb06a5a /lib/VNDB/Handler/Affiliates.pm
parentcf8e093eace0f3a86fc42726b09e4f2c9979f40e (diff)
Update usage kv_validate() to upcoming TUWF 1.0
And added new 'page' and 'id' templates for more strict validation.
Diffstat (limited to 'lib/VNDB/Handler/Affiliates.pm')
-rw-r--r--lib/VNDB/Handler/Affiliates.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Affiliates.pm b/lib/VNDB/Handler/Affiliates.pm
index c353ad49..b180adeb 100644
--- a/lib/VNDB/Handler/Affiliates.pm
+++ b/lib/VNDB/Handler/Affiliates.pm
@@ -108,14 +108,14 @@ sub edit {
if($self->reqMethod eq 'POST') {
return if !$self->authCheckCode;
$frm = $self->formValidate(
- { post => 'rid', required => 1, template => 'int' },
+ { post => 'rid', required => 1, template => 'id' },
{ post => 'priority', required => 0, default => 0, template => 'int' },
{ post => 'hidden', required => 0, default => 0, enum => [0,1] },
{ post => 'affiliate',required => 1, enum => [0..$#{$self->{affiliates}}] },
{ post => 'url', required => 1 },
{ post => 'version', required => 0, default => '' },
{ post => 'price', required => 0, default => '' },
- { post => 'lastfetch',required => 0, min => 0 },
+ { post => 'lastfetch',required => 0, template => 'uint' },
{ post => 'data', required => 0, default => '' },
);
if(!$frm->{_err}) {