Skip to content

Commit

Permalink
fix: fixed right single quotation in search issue (#7430)
Browse files Browse the repository at this point in the history
bug: fixed right single quotation in search issue
  • Loading branch information
goverdhan07 committed Oct 4, 2022
1 parent 621bc8f commit 174b8e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cgi/search.pl
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@

my %terms = ();

foreach my $term (split(/,|'|\s/, $search_terms)) {
foreach my $term (split(/,|'|鈥檤\s/, $search_terms)) {
if (length(get_string_id_for_lang($lc, $term)) >= 2) {
$terms{normalize_search_terms(get_string_id_for_lang($lc, $term))} = 1;
}
Expand Down Expand Up @@ -686,7 +686,7 @@
my $download = single_param("download") || '';

open(my $OUT, ">>:encoding(UTF-8)", "$data_root/logs/search_log_debug");
print $OUT remote_addr() . "\t" . time() . "\t" . decode utf8 => single_param('search_terms') . " - map: $map
print $OUT remote_addr() . "\t" . time() . "\t" . decode utf8 => single_param('search_terms') . " - map: $map
- graph: $graph - download: $download - page: $page\n";
close($OUT);

Expand Down

0 comments on commit 174b8e3

Please sign in to comment.