in reply to Re: User regexps
in thread User regexps
And you should of course be aware of source code injection. Suppose the user specifies: "a/; system( 'some evil command' ); m/a" and your code is:But that's not the code! Read the post. The code is:eval "m/$query/";
There's no danger of source code injection here (unless there's an unseen use re 'eval' in an enclosing scope.my $re = $_->regex; $matchtext =~ /$re/i;
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: User regexps
by dd-b (Pilgrim) on Jan 14, 2004 at 18:22 UTC |