about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-02 07:56:37 +0000
committerEric Wong <e@80x24.org>2016-07-02 07:57:29 +0000
commit2375cc488f2b1ea314452067a196a576558f7b57 (patch)
tree6041a123b6cae3b312024de21b04972bf46c12e2 /lib/PublicInbox
parent4d02ed7d60ecff963d3026187a0357e359fd2981 (diff)
downloadpublic-inbox-2375cc488f2b1ea314452067a196a576558f7b57.tar.gz
Plack::Request will check the request body by merely
calling "param", totally unnecessary and sneaky.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/View.pm2
1 files changed, 1 insertions, 1 deletions
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} = {};