Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I found the above code on the internet. It claims to do taint checking, but I'm not savvy enough to understand whats going on. I don't want to trust this subroutine to verify that my form data is safe if I don't know understand it.sub tainted { local($@); eval { kill 0 * $_(0) }; $@ =~ /^Insecure/; } 1;
Edit: BazB added code tags.
Edit: ysth change title from: explanation please?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Please explain this tainting behaviour
by Aristotle (Chancellor) on Aug 05, 2004 at 16:31 UTC | |
|
Re: Please explain this tainting behaviour
by ccn (Vicar) on Aug 05, 2004 at 16:40 UTC | |
|
Re: Please explain this tainting behaviour
by hardburn (Abbot) on Aug 05, 2004 at 16:32 UTC | |
|
Re: Please explain this tainting behaviour
by davido (Cardinal) on Aug 05, 2004 at 16:36 UTC | |
by Anonymous Monk on Aug 05, 2004 at 19:14 UTC | |
by Aristotle (Chancellor) on Aug 05, 2004 at 21:08 UTC | |
|
Re: Please explain this tainting behaviour
by roju (Friar) on Aug 05, 2004 at 16:32 UTC |