]> Sergey Matveev's repositories - public-inbox.git/commit
lei: normalize whitespace in remote queries
authorEric Wong <e@80x24.org>
Sat, 11 Sep 2021 00:19:17 +0000 (00:19 +0000)
committerEric Wong <e@80x24.org>
Sat, 11 Sep 2021 00:24:16 +0000 (00:24 +0000)
commit57fed2e4b78ed394db38ac6d9b9227722d546d98
tree8bdeef606aff72e7bf255b06eff892ac05d60400
parent0c2eaee968cb59ae60c10ce89b2c236fd9369830
lei: normalize whitespace in remote queries

Having redundant "+" in URLs is ugly and can hurt cacheability
of queries.  Even with "quoted phrase searches", Xapian seems
unaffected by redundant spaces, so just normalize the ASCII
white spaces to ' ' (%20) when fed via STDIN or saved-search
config file.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://public-inbox.org/meta/20210910141157.6u5adehpx7wftkor@meerkat.local/
lib/PublicInbox/LeiXSearch.pm