From 2375cc488f2b1ea314452067a196a576558f7b57 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 2 Jul 2016 07:56:37 +0000 Subject: view: rely on internal query parser for 'o' param Plack::Request will check the request body by merely calling "param", totally unnecessary and sneaky. --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox') 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} = {}; -- cgit v1.2.3-24-ge0c7