Peter Joseph Speltz > CGI-UntaintPatched-0.01 > CGI::UntaintPatched

Download:
CGI-UntaintPatched-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

CGI::UntaintPatched - CGI::Untaint but it returns a "No input for '$field'\n" error for fields left blank on a web form.

SYNOPSIS ^

  if ($h->error =~ /No input for/) {
    # caught empty input now handle it
  }

  See  CGI::Untaint. 

DESCRIPTION ^

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.

BUGS ^

None known yet.

SEE ALSO ^

CGI. perlsec. CGI::Untaint.

AUTHOR ^

Peter Speltz but most code was ripped from CGI::Untaint.

BUGS and QUERIES ^

Please direct all correspondence regarding this module to: peterspeltz@cafes.net or bug-CGI-UntaintPatched@rt.cpan.org

COPYRIGHT and LICENSE ^

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.

syntax highlighting: