[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Filter sub routine not called
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/\[/[/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