CGI::UntaintPatched - CGI::Untaint but it returns a "No input for '$field'\n" error for fields left blank on a web form.
if ($h->error =~ /No input for/) { # caught empty input now handle it } See CGI::Untaint.
Instead of passing the empty string to the untaint handlers, which do not like it or updating them all, it seemed better to have CGI::Untaint catch the field left blank exception. So it does. This should be ok I see no point untainting an empty string. But i am open to suggestions and other patches.
None known yet.
CGI. perlsec. CGI::Untaint.
Peter Speltz but most code was ripped from CGI::Untaint.
Please direct all correspondence regarding this module to: peterspeltz@cafes.net or bug-CGI-UntaintPatched@rt.cpan.org
Copyright (C) 2005 Peter Speltz. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CGI::UntaintPatched, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::UntaintPatched
CPAN shell
perl -MCPAN -e shell install CGI::UntaintPatched
For more information on module installation, please visit the detailed CPAN module installation guide.