Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: security issues with an thing...

by knobunc (Pilgrim)
on Jun 18, 2001 at 18:26 UTC ( #89300=note: print w/ replies, xml ) Need Help??

in reply to security issues with an thing...

That works. Basically you need to untaint the value you were passed after making sure it is valid. Checking it against a hash of valid values will do the trick, or as this site does, looking it up in a database.

Make sure that you use the correct filename portion of the URL (stip off arguments, add the absolute path if needed, etc.) when you do the validation.

It also might make some sense to not have a subroutine to open the filehandle, but rather just get the filename from the validator and have a standard block of code open it.


Comment on Re: security issues with an thing...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2015-10-13 12:30 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (304 votes), past polls