about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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};