summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-01-22 08:36:04 +0100
committerYorhel <git@yorhel.nl>2020-01-22 08:36:04 +0100
commitb86e1c7744710099d1511598ece7f5c320cd54da (patch)
treeb8fb3c8ee63aa019fadd99f183bad1b914d968d7
parentacd63f13d6a7878fc61bd375c5ec90882eae6c10 (diff)
User::Lists: Don't throw error when there are multiple ?q= parameters
Just ignore the query in that case, consistent with other invalid parameters. (It's amazing to see the kind of crap that can accidentally get into the query string as a result of bad URL parsing/formatting/copy-pasting)
-rw-r--r--lib/VNWeb/User/Lists.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/User/Lists.pm b/lib/VNWeb/User/Lists.pm
index cdebab6b..b4a7d5b9 100644
--- a/lib/VNWeb/User/Lists.pm
+++ b/lib/VNWeb/User/Lists.pm
@@ -277,7 +277,7 @@ sub opt {
tuwf->validate(get =>
p => { upage => 1 },
ch=> { onerror => undef, enum => [ 'a'..'z', 0 ] },
- q => { required => 0 },
+ q => { onerror => undef },
%SAVED_OPTS
)->data;