in reply to Re: Re: Code Cleanup challenge!
in thread Code Cleanup challenge!
In order to untaint, you need to capture what you want to keep anyway.
For the sake of being argumentative, no, you don't have to. This is Perl though, you're free to shoot yourself in the foot. You could f.ex s/// everything you want to disallow, then capture /(.*)/s.
But obviously, the untaint mechanism was chosen to encourage "allow what you will accept" logic.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Code Cleanup challenge!
by sauoq (Abbot) on Aug 11, 2003 at 21:38 UTC |