GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CLASS::DBI::UNTAINT (3)

.ds Aq ’

NAME

Class::DBI::Untaint - Class::DBI constraints using CGI::Untaint

CONTENTS

SYNOPSIS



  use base Class::DBI;
  use Class::DBI::Untaint;

  ___PACKAGE__->columns(All => qw/id value entered/);
  ___PACKAGE__->constrain_column(value => Untaint => "integer");
  ___PACKAGE__->constrain_column(entered => Untaint => "date");



DESCRIPTION

Using this module will plug-in a new constraint type to Class::DBI that uses CGI::Untaint.

Any column can then be said to require untainting of a given type - i.e. that any value which you attempted to set that column to (include at create() time) must pass an untaint as_type() check.

In the examples above, the ’value’ column must pass the check in CGI::Untaint::integer, and similarly ’entered’ must untaint as a date.

SEE ALSO

Class::DBI, CGI::Untaint.

AUTHOR

Tony Bowden

BUGS and QUERIES

Please direct all correspondence regarding this module to:
bug-Class-DBI-Untaint@rt.cpan.org

COPYRIGHT AND LICENSE



  Copyright (C) 2004-2005 Tony Bowden.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License; either version
  2 of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CLASS::DBI::UNTAINT (3) 2005-09-06

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.