From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 71DBD1FCC7 for ; Mon, 23 May 2016 06:23:05 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] git-http-backend: avoid Plack::Request parsing body Date: Mon, 23 May 2016 06:23:01 +0000 Message-Id: <20160523062302.30946-2-e@80x24.org> In-Reply-To: <20160523062302.30946-1-e@80x24.org> References: <20160522205734.12316-1-e@80x24.org> <20160523062302.30946-1-e@80x24.org> List-Id: Only check query parameters since there's no useful body in there. --- lib/PublicInbox/GitHTTPBackend.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm index 97834de..70990eb 100644 --- a/lib/PublicInbox/GitHTTPBackend.pm +++ b/lib/PublicInbox/GitHTTPBackend.pm @@ -42,7 +42,7 @@ sub r ($;$) { sub serve { my ($cgi, $git, $path) = @_; - my $service = $cgi->param('service') || ''; + my $service = $cgi->query_parameters->get('service') || ''; if ($service =~ /\Agit-\w+-pack\z/ || $path =~ /\Agit-\w+-pack\z/) { my $ok = serve_smart($cgi, $git, $path); return $ok if $ok;