CGI::Un...:Maypole(3)
π CGI::Untaint::Maypole π
okay bestie, so this is the manual page for CGI::Untaint::Maypole, which lives in the User Contributed Perl Documentation collection. It's basically CGI::Untaint but with a lil glow-up, and honestly? she ate. π¦
β¨ NAME β¨
CGI::Untaint::Maypole β use this instead of CGI::Untaint. It's based on CGI::Untaint, so like, it's the same family, just the cooler sibling. π
πΈ SYNOPSIS πΈ
here's the whole vibe in code, no cap:
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
...
}
π DESCRIPTION π
so basically, this module patches some issues the author had with CGI::Untaint. You still need CGI::Untaint installed (fr fr, it's a whole dependency situation), and you install handlers the exact same way. No new drama there. β¨
- Instead of passing the empty string to the untaint handlers and just hoping they handle it in a way everyone likes, it seems way better to have
CGI::Untaintjust say"No input for field"when the field is blank. Like, clear communication, periodt. π«Ά - It adds the method
"raw_data"so you can get back the parameters the handler was created with. iconic behaviour honestly.
π¦ raw_data
Returns the parameters the handler was created with, as a hashref. that's it, that's the whole function, and she's serving. π
π BUGS π
None known yet. (which is giving main character energy, but also, we're watching. π)
π SEE ALSO π
perlsec. CGI::Untaint.
π AUTHOR π
Peter Speltz.
π BUGS and QUERIES π
Please direct all correspondence regarding this module to:
bug-Maypole@rt.cpan.org
π COPYRIGHT and LICENSE π
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.
and that's the whole page bestie, go forth and untaint responsibly π§π
signing off β this was perl v5.42.0, dated 2025-07-25, from the CGI::Un...:Maypole(3) manual page. mwah π
π¦ where this page comes from
- fedora 43: perl-Maypole 1:2.13-46.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms