Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: (nrd) removing special characters

by newrisedesigns (Curate)
on Feb 13, 2003 at 20:37 UTC ( #235099=note: print w/replies, xml ) Need Help??


in reply to Re: removing special characters
in thread removing special characters

Taint check. It is the only way.™

my $param = $q->param("text") || ''; #for example... if($param =~ /^([\w\s]+)/){ # modify as needed $param = $1; } else{ return 0; # or die, or croak, or warn, or something! }

John J Reiser
newrisedesigns.com

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://235099]
help
Chatterbox?
[chacham]: Happy May everybody.
[james28909]: nope, i havent written any article about it yet. maybe in the future sometime once i have time for more testing

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2017-05-01 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (544 votes). Check out past polls.