Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 scrutinizing the Monastery: (5)
As of 2016-09-29 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (547 votes). Check out past polls.