in reply to How to deal with multiple functions served from only one input field?
Sorry for not addressing your actual question, but I strongly suggest you run your input through some kind of untainting (especially since you are using taint mode) before doing anything else with it. You will likely save yourself some grief by not using/sending what is obvious crap (bogus user input) when it is present to begin with. Testing for a valid IP address format is fairly trivial, and there are several patterns for domain names that can be used.
Trust me on this. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to deal with multiple functions served from only one input field?
by taint (Chaplain) on Nov 15, 2013 at 01:17 UTC |