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

bug: Search.cgi parameter change

Quote Reply
bug: Search.cgi parameter change
Alex,

The way we (many of us) create templates, we end up with an 'unknown tag query' in the search templates. The easiest way to eliminate this is to change the routine in search.cgi to:

Code:
# Determine what to do.
# ---------------------------------------------------
if ($in->param('query')) {
&search ($in);
}
else {
&site_html_search_form ( {query =>''}, $dynamic );
}

By forcing a 'query' parameter to exist, even if it's not passed, no errors are generated. I might not have caught everything, but it seems to eliminate those errors on my site.
Quote Reply
Re: bug: Search.cgi parameter change In reply to
Thanks! Fixed..

Cheers,

Alex