Why not adopt me?
NAME
Maypole::Plugin::AutoUntaint - CDBI::AutoUntaint for Maypole
SYNOPSIS
package BeerDB;
use Maypole::Application qw( AutoUntaint );
BeerDB->auto_untaint;
- setup
-
If the
-Setupflag is passed in the call to Maypole::Application,auto_untaintwill be called automatically, with no arguments. [not tested] - auto_untaint( %args )
-
Takes the same arguments as
Class::DBI::AutoUntaint::auto_untaint(), but theuntaint_columnsandskip_columnshashrefs must be further keyed by table:untaint_columns => { $table => { $untaint_as => [ qw( col1 col2 ) ], ..., }, ..., }, skip_columns => { $table => [ qw( colx coly ) ], ..., },Accepts two additional arguments.
match_cols_by_tableis the same as thematch_colsargument, but only applies to specific tables:match_cols_by_table => { $table => { $col_regex => $untaint_as, ..., }, ..., },Column regexes in <match_cols_by_table> that are the same as any in <match_cols> will take precedence.
untaint_tablesspecifies the tables to untaint as an arrayref. Defaults to$r-config->{display_tables}>.
TODO
Tests!
SEE ALSO
Class::DBI::Plugin::AutoUntaint does the hard work, and describes the arguments in more detail.
AUTHOR
David Baird, <cpan@riverside-cms.co.uk>
BUGS
Please report any bugs or feature requests to bug-maypole-plugin-autountaint@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Maypole-Plugin-AutoUntaint. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2005 David Baird, All Rights Reserved.