Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Re: Untaint IP address/hostname question

by hsinclai (Deacon)
on Mar 11, 2004 at 13:46 UTC ( [id://335811]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Untaint IP address/hostname question
in thread Untaint IP address/hostname question

If you mean the next program down the line should finally decide whether the IP address is valid, I disagree.

In this situation this regexp should deal with the lower level checking of the basic address validity. 999.000.999.000 is not a valid IP address. Otherwise you're allowing garbage input further down the chain of execution, while you bask in your cerebral interpretation of the definition of "taint" :)


you'll have to check what characters that program accepts.

What program that deals with IP addresses will accept "999.000.999.000" as valid? Do you mean we have drop everything, and go check with that program first?
  • Comment on Re: Re: Re: Re: Untaint IP address/hostname question

Log In?
Username:
Password:

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

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

    No recent polls found