[ic] modify search to ignore hyphens - how to use [filter word]

Eric Small interchange at ericsmall.com
Thu Jun 24 14:55:39 EDT 2004


DB wrote:

>Eric Small wrote:
>> [set mysearch_profile]
>>    fi=products
>>    st=text
>>    ml=25
>>    so=category
>>    se=[filter word [cgi searchparam]]
>>    op=rm
>>    cs=no
>>    su=yes
>> [/set]
>>
> 
> I want to do a search for the filtered OR unfilterd search spec and I 
> think that would be easier using Eric's format.
> 

Upon further reflection I think that what I gave you is a security risk. 
To be safer the line
se=[filter word [cgi searchparam]]
should be
se=[filter word [cgi name=searchparam filter=entities]]

Perhaps this would work or an or search?

os=yes
se=[filter word [cgi name=searchparam filter=entities]]
se=[cgi name=searchparam filter=entities]

I'm not certain that multiple se parameters can be specified, but it's 
worth a try.

Eric Small
-- 
Interchange 5.2.0 / Debian 3.0 Stable / PostgreSQL 7.4.1


More information about the interchange-users mailing list