]> Sergey Matveev's repositories - public-inbox.git/commit
searchview: retry queries if uri_unescape-able
authorEric Wong <e@80x24.org>
Tue, 23 May 2017 23:07:24 +0000 (23:07 +0000)
committerEric Wong <e@80x24.org>
Tue, 23 May 2017 23:09:51 +0000 (23:09 +0000)
commite2c0e75a55e0df8e7a68b0cf7f078e9317e99ee2
tree1caf9928afdb27a307274c9380dee0f32f91d7ef
parent09f1e000734bc431ec7b63e18959bf6f34f9c179
searchview: retry queries if uri_unescape-able

It is possible to have double-escaped queries when copy and
pasting into browsers, so try to help users work around this
common error by automatically retrying after unescaping once.

Of course, we must inform the user when doing this results in
success, in case they really meant to search for a
double-escaped term which resulted in nothing.

Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  https://public-inbox.org/meta/CACBZZX5Gnow08r=0A1J_kt3a=zpGyMfvsqu8nAN7kacNnDm+dg@mail.gmail.com/
lib/PublicInbox/SearchView.pm