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

Re: [Andy] [ Feature request ] Search logging - only allow certain charachters

Quote Reply
Re: [Andy] [ Feature request ] Search logging - only allow certain charachters In reply to
Yes. The first is here

Code:
my $started;
if (length $query and $CFG->{search_logging} and $args->{nh} == 1) {
if (!defined $time_hires) {
$time_hires = eval { require Time::HiRes } || 0;
}
$started = $time_hires ? Time::HiRes::time() : time;
}

And the second

Code:
# Log the search if it's a new query
if (length $query and $CFG->{search_logging} and $args->{nh} == 1) {
my $elapsed = ($time_hires ? Time::HiRes::time() : time) - $started;
my $results = $link_count || 0;
my $sl = $DB->table('SearchLogs');
my $q = lc $query;
substr($q, 255) = '' if length $q > 255;


I've changed it both

Regards.

UnReal Network
Subject Author Views Date
Thread [ Feature request ] Search logging - only allow certain charachters Andy 4783 Jan 8, 2012, 5:22 AM
Thread Re: [Andy] [ Feature request ] Search logging - only allow certain charachters
Andy 4671 Jan 8, 2012, 5:24 AM
Thread Re: [Andy] [ Feature request ] Search logging - only allow certain charachters
DeadMan 4607 Jan 30, 2012, 10:14 AM
Thread Re: [DeadMan] [ Feature request ] Search logging - only allow certain charachters
Andy 4618 Jan 30, 2012, 10:16 AM
Thread Re: [Andy] [ Feature request ] Search logging - only allow certain charachters
DeadMan 4592 Jan 30, 2012, 11:17 AM
Post Re: [DeadMan] [ Feature request ] Search logging - only allow certain charachters
Andy 4598 Jan 30, 2012, 11:20 AM