]> Sergey Matveev's repositories - public-inbox.git/commit
www: do not warn on blank query parameters
authorEric Wong <e@80x24.org>
Wed, 23 Jun 2021 11:14:22 +0000 (07:14 -0400)
committerEric Wong <e@80x24.org>
Wed, 23 Jun 2021 19:24:50 +0000 (19:24 +0000)
commit5ef37f4a13e2be711ef074dc2cd9994005273117
tree81a59f35839a7f6e0433de2b1f299706c1760c51
parent520be116e8a686cb223b48fad1de29201dee45be
www: do not warn on blank query parameters

Sometimes users (or bots) may lead queries with '&' and
trigger uninitialized variable warnings, just ignore them
and give consumers a $ctx->{qp}->{''} entry.

While we're in the area, pass a regexp rather than scalar string
to the `split' perlop to prevent Perl from recompiling the
regexp on every call.
lib/PublicInbox/WWW.pm
t/psgi_search.t