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
CGI::Untaint::Maypole(3) User Contributed Perl Documentation CGI::Untaint::Maypole(3)

CGI::Untaint::Maypole - Use instead of CGI::Untaint. Based on CGI::Untaint

  use CGI::Untaint::Maypole;
  my $h = CGI::Untaint::Maypole->new($params);
  $value = $h->extract(-as_printable => 'name);

  if ($h->error =~ /No input for/) {
        # caught empty input now handle it
                ....
  }
  if ($h->raw_data->{$field} eq $object->$field) {
    # Raw data same as database data. Perhaps we should not update field
        ...
  }

This patches some issues I have with CGI::Untaint. You still need it installed and you install handlers the same.

1) Instead of passing the empty string to the untaint handlers and relying on them to handle it to everyone's liking, it seems better to have CGI::Untaint just say "No input for field" if the field is blank.

2) It adds the method "raw_data" to the get back the parameters the handler was created with.

Returns the parameters the handler was created with as a hashref

None known yet.

perlsec. CGI::Untaint.

Peter Speltz.

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

Copyright (C) 2006 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.

2006-10-02 perl v5.32.1

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

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