Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: perl 5.8.4, IO::Socket, and taint checking

by driver8 (Scribe)
on Jun 12, 2004 at 18:12 UTC ( [id://363638]=note: print w/replies, xml ) Need Help??


in reply to perl 5.8.4, IO::Socket, and taint checking

I don't have much experience with taint checking, so I'm not sure, but that doesn't look quite right to me. If the $base doesn't pass the conditional, you are still using it in the 'print get("$base/index.html");' even though it's tainted. What if you move the get up inside the conditional? What if you do else 'die'? Does this still give the error:
if ($base =~ m{^(http://[\w\.\/\-]+)$}) { $base = $1; print get("$base/index.html"); } else { die "$base didn't match\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-28 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found