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
...in admin/Links/User/Search.pm, here is how I've done it (in case anyone else wants to manually make this hack);

Code:
if (length $query and $CFG->{search_logging} and $args->{nh} == 1) {

I changed to:

Code:
if (length $query and $CFG->{search_logging} and $args->{nh} == 1 and $query =~ /^[a-z0-9 _\-\.,@]+$/i) {

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread [ Feature request ] Search logging - only allow certain charachters Andy 4722 Jan 8, 2012, 5:22 AM
Thread Re: [Andy] [ Feature request ] Search logging - only allow certain charachters
Andy 4612 Jan 8, 2012, 5:24 AM
Thread Re: [Andy] [ Feature request ] Search logging - only allow certain charachters
DeadMan 4549 Jan 30, 2012, 10:14 AM
Thread Re: [DeadMan] [ Feature request ] Search logging - only allow certain charachters
Andy 4560 Jan 30, 2012, 10:16 AM
Thread Re: [Andy] [ Feature request ] Search logging - only allow certain charachters
DeadMan 4532 Jan 30, 2012, 11:17 AM
Post Re: [DeadMan] [ Feature request ] Search logging - only allow certain charachters
Andy 4539 Jan 30, 2012, 11:20 AM