I have a cgi script that processes a form in which the following line of code 
is found

$name =~ s/[`\\"_|!\$\.\^]//g; #remove likely malicious bad characters

Just wondering if there is a better way to do this as I suspect I am a little 
naive.

Need to pass only the low ascii set [A..Za..z] and the ' for names like 
O'Reilly. Maybe I should return the form 

unless ($name =~ /[A..Za..z\']){return to form}

Any advice welcomed



TIA



Owen

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to