Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: CGI and Traceroute

by blogan (Monk)
on Oct 19, 2000 at 06:20 UTC ( [id://37459]=note: print w/replies, xml ) Need Help??


in reply to CGI and Traceroute

if ($value =~ /\/|;|#|!|"|'|`|\|)/) { print "Invalid parameter"; # perhaps log this "malicious" attempt } else { processhappily(); }
Don't forget to escape those characters with a \. I usually escape all my non-alphanumerics with a \ because I can't remember which ones are special in regexs (I have my O'Reilly book in front of my now, they're \ | ( ) [ { ^ $ * + ? . but I usually play it safe. Also, but the O'Reilly book if you're new. It's great help

Log In?
Username:
Password:

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

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

    No recent polls found