input-filter — add or remove filters applied to CGI variables
Attribute | Pos. | Req. | Default | Description |
---|---|---|---|---|
name | Yes | |||
remove | ||||
routine | ||||
op | ||||
interpolate | 0 | interpolate input? | ||
reparse | 1 | interpolate output? |
Add or removes filters applied to CGI variables. The mechanism is
similar to the filters specified by the Filter
directive, the
current settings are stored within the session.
Interchange 5.9.0:
Source: code/SystemTag/input_filter.coretag
Lines: 18
# Copyright 2002-2007 Interchange Development Group and others # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. See the LICENSE file for details. # # $Id: input_filter.coretag,v 1.5 2007-03-30 23:40:49 pajamian Exp $ UserTag input-filter Order name UserTag input-filter addAttr UserTag input-filter attrAlias var name UserTag input-filter attrAlias variable name UserTag input-filter attrAlias ops op UserTag input-filter hasEndTag UserTag input-filter PosNumber 1 UserTag input-filter Version $Revision: 1.5 $ UserTag input-filter MapRoutine Vend::Interpolate::input_filter
Source: lib/Vend/Interpolate.pm
Lines: 918
sub input_filter { my ($varname, $opt, $routine) = @_; if($opt->{remove}) { return if ! ref $Vend::Session->{Filter}; delete $Vend::Session->{Filter}{$_}; return; } $opt->{routine} = $routine if $routine =~ /\S/; $Vend::Session->{Filter} = {} if ! $Vend::Session->{Filter}; $Vend::Session->{Filter}{$varname} = $opt->{op} if $opt->{op}; return; }