We don't bite newbies here... much | |
PerlMonks |
Regex Dangerous??by mt2k (Hermit) |
on Mar 23, 2001 at 04:45 UTC ( [id://66531]=perlquestion: print w/replies, xml ) | Need Help?? |
mt2k has asked for the wisdom of the Perl Monks concerning the following question:
Could the following regular expression prove to be dangerous to the server:
The $input{'variable'} variable would be a value entered from a textfield from a CGI script. I don't think entering commands does anything, but I noticed that you can enter special characters, such as charater classes, parentheses, periods, carets, and dollar signs. So is there any danger of files being deleted, or anything else I would want to class as bad?? Or would it just allow some nice restrictions for a search engine??
So if it is dangerous somehow, I should use: right??
Back to
Seekers of Perl Wisdom
|
|