---
name: "CGI::ValidOp::Check::sql"
section: "3pm"
platform: "linux"
package: "libcgi-validop-perl"
version: "0.56-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::ValidOp::Check::sql"
---

# CGI::ValidOp::Check::sql(3pm)

CGI::ValidOp::Check module to validate SQL.

## NAME

CGI::ValidOp::Check::sql - CGI::ValidOp::Check module to validate SQL.

## DESCRIPTION

- default

  Fails if incoming value contains characters other than: \\w \\s .  : \[ \] \_ ^ \* / % + - \<\> = ~ !  @ # & \| \` ?  $ ( )  , ; ' "

- safer

  Named "safer" since allowing users to write SQL can never be truly "safe."  This check attempts to allow only things which will not harm data.  It doesn't prevent a clever query from wreaking other havoc, though, like a DOS.

- safer\_select

  Just like "safer" but allows 'SELECT'.

## AUTHOR

Randall Hansen \<legless@cpan.org\>

## COPYRIGHT

Copyright (c) 2003-2007 Randall Hansen. All rights reserved.

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html
