NAME
CGI::Untaint::Filenames - CGI::Untaint::Filenames - untaint filename values from CGI programs
SYNOPSIS
my
$handler
= CGI::Untaint->new(
$q
->Vars() );
my
$filename
=
$handler
->extract(
-as_filename
=>
'some_feature'
);
DESCRIPTION This input handler verifies that it has a a valid (UNIX) filename. It provides the regex and a subroutine for a handler. Extensive test cases are provided.
INSTALLATION
perl Build.PL ./Build ./Build test ./Build install
BUGS
While it is valid to end a UNIX filename with \# ! and % I haven't got those incorporated into the regular expression. Test cases exist but are currently commented out.
Please report any fixes and other bugs to http://rt.cpan.org/.
SUPPORT
Bug reports welcome, see above.
AUTHOR
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
perl(1). CGI::Untaint, Test::CGI::Untaint