Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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.

Comment on RE: CGI and Traceroute
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-10-10 15:37 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (257 votes), past polls