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

Re: apostrophes and security

by trammell (Priest)
on Aug 15, 2005 at 15:15 UTC ( [id://483885]=note: print w/replies, xml ) Need Help??


in reply to apostrophes and security

One method of deleting all undesirable characters:
$value =~ tr/A-Za-z0-9_//cd; # delete non-\w chars

Replies are listed 'Best First'.
Re^2: apostrophes and security
by deadnancy (Novice) on Aug 16, 2005 at 04:27 UTC
    Thanks, trammell, but that regex kills ampersands and semicolons, both necessary for what I want to do.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2025-07-11 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.