about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-11-10 10:28:37 +0000
committerEric Wong <e@80x24.org>2021-11-10 18:38:17 +0000
commitb63e13509ce1fb359db4096b33219bcdb978e36d (patch)
treeb98b933de9d073f129fd43c8dd7d70b1639b5c49 /lib
parent7eeeea81c74c7184984510892871fd79406c0393 (diff)
downloadpublic-inbox-b63e13509ce1fb359db4096b33219bcdb978e36d.tar.gz
Following commit 57fed2e4b78ed394 (lei: normalize whitespace in
remote queries, 2021-09-11), leaving the trailing `\n' from
stdin queries to be normalized to ` ' (SP) causes it to appear
as `+' in URLs, which Xapian ignores.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index 29df07e0..2958d3f9 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -342,7 +342,7 @@ sub query_remote_mboxrd {
         local $SIG{TERM} = sub { exit(0) }; # for DESTROY (File::Temp, $reap)
         my $lei = $self->{lei};
         my $opt = $lei->{opt};
-        my $qstr = $lei->{mset_opt}->{qstr};
+        chomp(my $qstr = $lei->{mset_opt}->{qstr});
         $qstr =~ s/[ \n\t]+/ /sg; # make URLs less ugly
         my @qform = (x => 'm');
         push(@qform, t => 1) if $opt->{threads};