summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Staff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-04-13 09:33:02 +0200
committerYorhel <git@yorhel.nl>2020-04-13 09:33:17 +0200
commit02bcf4d5c5ab4266784627ec07d94674abb63000 (patch)
tree466e1cd6b293595c63adb4f07b2fda86415c0292 /lib/VNWeb/Staff
parent981f226b189c133d937acc419c269a353b9f4a8d (diff)
Fix input validation of Wikidata IDs + fix "id" upper bound
The 'id' validation is to be used for internal VNDB ids only and associativity of << and - were different from what I had expected.
Diffstat (limited to 'lib/VNWeb/Staff')
-rw-r--r--lib/VNWeb/Staff/Edit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Staff/Edit.pm b/lib/VNWeb/Staff/Edit.pm
index 4503c108..b0ea0359 100644
--- a/lib/VNWeb/Staff/Edit.pm
+++ b/lib/VNWeb/Staff/Edit.pm
@@ -16,7 +16,7 @@ my $FORM = {
gender => { default => 'unknown', enum => [qw[unknown m f]] },
lang => { default => 'ja', language => 1 },
l_site => { required => 0, default => '', weburl => 1 },
- l_wikidata => { required => 0, id => 1 },
+ l_wikidata => { required => 0, uid => 1, max => (1<<31)-1 },
l_twitter => { required => 0, default => '', regex => qr/^\S+$/, maxlength => 16 },
l_anidb => { required => 0, id => 1, default => undef },
l_pixiv => { required => 0, id => 1, default => 0 },