From: Eric Wong Date: Thu, 2 Jun 2016 00:09:13 +0000 (+0000) Subject: www: force two element key-value pairs in query X-Git-Tag: v1.0.0~466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1d60f92dffc9830618aa0b49f3f829e99cb5353;p=thirdparty%2Fpublic-inbox.git www: force two element key-value pairs in query Oops, this quiets down a warning seen in logs. --- diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index e211cd6d5..d26b69c00 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -45,7 +45,8 @@ sub call { # we don't care about multi-value my %qp = map { - (split('=', $_, 2)) + my ($k, $v) = split('=', $_, 2); + ($k, $v) } split(/[&;]/, uri_unescape($env->{QUERY_STRING})); $ctx->{qp} = \%qp;