Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

search-ni.cgi minor bug fix

Quote Reply
search-ni.cgi minor bug fix
The search-ni.cgi search result is very strange when you input more than 2 space between the words.

I have fixed it. Details below:

After line 79:

$query =~ s/_/\\_/g;

add:

$query =~ s/ {2,}/ /g;
$original =~ s/ {2,}/ /g;

change line 155:

&log_query ($in->param('query'), $link_hits + $cat_hits);

to:

&log_query ($original, $link_hits + $cat_hits);