• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/Class/DBI/H06-Sep-2005-7315

t/H06-Sep-2005-6544

ChangesH A D06-Sep-2005158 105

MANIFESTH A D06-Sep-2005177 1110

MANIFEST.SKIPH A D05-Mar-2004116 1615

META.ymlH A D06-Sep-2005435 1412

Makefile.PLH A D05-Mar-2004322 1312

READMEH A D06-Sep-20051.4 KiB4431

README

1NAME
2    Class::DBI::Untaint - Class::DBI constraints using CGI::Untaint
3
4SYNOPSIS
5      use base 'Class::DBI';
6      use Class::DBI::Untaint;
7
8      ___PACKAGE__->columns(All => qw/id value entered/);
9      ___PACKAGE__->constrain_column(value => Untaint => "integer");
10      ___PACKAGE__->constrain_column(entered => Untaint => "date");
11
12DESCRIPTION
13    Using this module will plug-in a new constraint type to Class::DBI that
14    uses CGI::Untaint.
15
16    Any column can then be said to require untainting of a given type - i.e.
17    that any value which you attempted to set that column to (include at
18    create() time) must pass an untaint as_type() check.
19
20    In the examples above, the 'value' column must pass the check in
21    CGI::Untaint::integer, and similarly 'entered' must untaint as a date.
22
23SEE ALSO
24    Class::DBI, CGI::Untaint.
25
26AUTHOR
27    Tony Bowden
28
29BUGS and QUERIES
30    Please direct all correspondence regarding this module to:
31    bug-Class-DBI-Untaint@rt.cpan.org
32
33COPYRIGHT AND LICENSE
34      Copyright (C) 2004-2005 Tony Bowden.
35
36      This program is free software; you can redistribute it and/or modify
37      it under the terms of the GNU General Public License; either version
38      2 of the License, or (at your option) any later version.
39
40      This program is distributed in the hope that it will be useful,
41      but WITHOUT ANY WARRANTY; without even the implied warranty of
42      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43
44