[ic] Filter sub routine not called

Mike Heins interchange-users@interchange.redhat.com
Mon Jan 28 16:22:01 2002


Quoting Alexandra Birch (alexandra@trymedia.com):
> I created a new filter in my catalog.cfg to filter only ic tags:
> # New filter for making entered ic tags safe
> Sub <<EOR
> sub restrict_tags  {
>                 my $val = shift;
>                 $val =~ s/\[/&#91;/g;
>                 return $val;
> }
> EOR
> 
> And called it in my table-editor tag:
> [table-editor
> 
>         filter.question="restrict_tags"
>         filter.answer="restrict_tags"
> 
>         cgi=1
> ]
> 
> I restarted and ic tags keep getting through.
> 

That is not how to add a filter. It will be easier in the
next version of Interchange, but for now a user cannot
add filters in catalog.cfg.

I think the "textarea_put" filter would do what you want.

-- 
Red Hat, Inc., (emailing wirelessly from my laptop, on Perl Whirl
in the Caribbean Ocean) Geek Cruises (www.GeekCruises.com)
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

Being against torture ought to be sort of a bipartisan thing.
-- Karl Lehenbauer