Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Does it exist?

Quote Reply
Re: [Andy] Does it exist? In reply to
From the top of Search.pm

Code:
# First get our search options.
my $args = $IN->get_hash;
$args->{query} =~ s,^\s*|\s*$,,g;
$args->{bool} = (defined $args->{bool} and $args->{bool} =~ /^(and|or)$/i) ? uc $1 : $CFG->{search_bool};
$args->{nh} = (defined $args->{nh} and $args->{nh} =~ /^(\d+)$/) ? $1 : 1;
$args->{mh} = (defined $args->{mh} and $args->{mh} =~ /^(10|25|50|100)$/) ? $1 : $CFG->{search_maxhits};
$args->{substring} = defined $args->{substring} ? $args->{substring} : $CFG->{search_substring};
$args->{so} = (defined $args->{so} and $args->{so} =~ /^(asc|desc)$/i ? $1 : '');
$args->{sb} and ($args->{sb} =~ /^[\w\s,]+$/ or ($args->{sb} = ''));


So, both Paul and my suggestion *should* work. If it's not, then there is a bug somewhere.

That statement looks *way* too complicated to be working correctly <G>


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Does it exist? Andy 3190 Mar 28, 2003, 1:03 AM
Thread Re: [Andy] Does it exist?
pugdog 3085 Mar 28, 2003, 1:33 AM
Thread Re: [pugdog] Does it exist?
Andy 3112 Mar 28, 2003, 1:45 AM
Post Re: [Andy] Does it exist?
Paul 3070 Mar 28, 2003, 1:46 AM
Thread Re: [Andy] Does it exist?
pugdog 3047 Mar 28, 2003, 9:17 AM
Thread Re: [pugdog] Does it exist?
Andy 3078 Mar 29, 2003, 2:26 AM
Post Re: [Andy] Does it exist?
Paul 3019 Mar 29, 2003, 3:01 AM