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

RE: CGI and Traceroute

by redcloud (Parson)
on Oct 19, 2000 at 03:29 UTC ( #37445=note: print w/ replies, xml ) Need Help??


in reply to CGI and Traceroute

Instead of using s/// to filter out the characters you don't want, use it to only allow the characters you do want.

How about something like: $value =~ m/([-.0-9a-zA-Z]+)/; $value = $1;
That would only allow dashes, dots, and alphanumerics, which IIRC are all you are allowed to use in a fully-qualified domain name.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2016-07-25 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (226 votes). Check out past polls.