Catalys...Untaint(3)
π NAME π
Catalyst::Plugin::CGI::Untaint β a lil plugin for Catalyst, bestie π
(it's filed under Catalys...Untaint(3), in case you were squinting at the terminal like "who is she" β she's you, after you read this)
β¨ SYNOPSIS β¨
okay so first you gotta load her up. in your MainApp.pm:
# In your MainApp.pm:
use Catalyst qw/CGI::Untaint/;
then in your form handler you do the cute little thing:
# Put into your form handler:
my $email = $c->untaint(-as_email => 'email');
# Will extract only a valid email address from $c->req->params->{email}
and if she comes back empty, no stress, you can get the reason she rejected it with -last_error:
# Use -last_error to get the rejection reason:
if (not $email) {
$error = $c->untaint(-last_error => 'email');
}
π«Ά quick heads up bestie β for that example up there to actually work, you needCGI::UntaintandCGI::Untaint::emailinstalled. no cap.
πΈ DESCRIPTION πΈ
This module wraps CGI::Untaint up into a Catalyst plugin. that's it, that's the vibe π
Wanna know how to actually use CGI::Untaint? go read its own documentation, she explains herself way better than I can. iykyk πβ¨
π¦ SEE ALSO π¦
CatalystCGI::Untaint
π AUTHOR π
Toby Corkindale, <cpan@corkindale.net>
π COPYRIGHT AND LICENSE π
Copyright (C) 2006 by Toby Corkindale
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
and that's the whole page, periodt π
β¨ this was perl v5.42.0, dated 2025-07-25, from the User Contributed Perl Documentation collection β go forth and untaint those inputs, you absolute icon πππ¦
π¦ where this page comes from
- fedora 43: perl-Catalyst-Plugin-CGI-Untaint 0.05-49.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