w3m (and presumably other browsers) send CRLF instead of LF for
queries made from <textarea> from the VCS view. CRs require
unnecessary escaping and make RLs look ugly, so omit them
to cleanup URLs and reduce memory traffic in Xapian.
my ($l) = (($qp->{l} || '') =~ /([0-9]+)/);
$l = $LIM if !$l || $l > $LIM;
my ($o) = (($qp->{o} || '0') =~ /(-?[0-9]+)/);
+ my $q = $qp->{'q'};
+ $q =~ s/\r\n/\n/sg if defined $q;
bless {
- q => $qp->{'q'},
+ q => $q,
x => $qp->{x} || '',
o => $o,
l => $l,