From: Eric Wong Date: Sat, 2 Jul 2016 07:56:37 +0000 (+0000) Subject: view: rely on internal query parser for 'o' param X-Git-Tag: v1.0.0~322 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2375cc488f2b1ea314452067a196a576558f7b57;p=public-inbox.git view: rely on internal query parser for 'o' param Plack::Request will check the request body by merely calling "param", totally unnecessary and sneaky. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index fd882aa0..1527959d 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -908,7 +908,7 @@ sub emit_topics { sub emit_index_topics { my ($ctx) = @_; - my ($off) = (($ctx->{cgi}->param('o') || '0') =~ /(\d+)/); + my ($off) = (($ctx->{qp}->{o} || '0') =~ /(\d+)/); $ctx->{order} = []; $ctx->{subjs} = {}; $ctx->{latest} = {};