Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Taint mode trap from Perl 5.6 to 5.8 - going mad!

by fizbin (Chaplain)
on Sep 16, 2005 at 12:04 UTC ( [id://492586]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Taint mode trap from Perl 5.6 to 5.8 - going mad!
in thread Taint mode trap from Perl 5.6 to 5.8

I don't trust your is_tainted function. Try using the standard one instead:
my $msg = MIME::Lite->new( To => "$emailsite", From => "$from", Subject => "Contato >> $assunto", Type => 'text/html', Data => "$html" ); use Scalar::Util qw(tainted); # This module is included in perl 5.8 my %test = ('$msg' => $msg, '$emailsite' => $emailsite, '$from' => $from, '$assunto' => $assunto, '$html' => $html +); my ($k, $v); while (($k, $v) = each %test) { if (tainted($v)) {print STDERR "$k is TAINTED\n";} else {print STDERR "$k is not tainted\n";} } $msg->send();
By the way, where did you get your is_tainted function? It's not the standard one suggested in perlsec
--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://492586]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-25 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found