No such thing as a small change | |
PerlMonks |
Re: User regexpsby Abigail-II (Bishop) |
on Jan 14, 2004 at 15:44 UTC ( [id://321276]=note: print w/replies, xml ) | Need Help?? |
And that's going to prevent you from danger exactly how?
There are two potential dangers when running user supplied regexes. 1) arbitrary code injection and 2) resource exhaustion. 1) is not possible by default, only if you enable use re 'eval', or use string eval (which isn't done by the OP). 2) is a more serious problem, and can be archieved with the limited of characters you propose. Abigail
In Section
Seekers of Perl Wisdom
|
|