saintly has asked for the wisdom of the Perl Monks concerning the following question:
And for checking whether taint mode is enabled at all, I've been using this ugly code that passes what should theoretically be always tainted:sub is_tainted { return ! eval { eval("#" . substr(join("", @_), 0, 0)); 1 }; }
But now I've run into problems. getpwuid() works great on UNIX systems, but in ActiveState Perl on Windows, it breaks. So my questions are:$taintModeEnabled = &is_tainted( +(getpwuid(0))[1] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking to see if Taint mode is enabled
by Thelonius (Priest) on Mar 17, 2007 at 01:07 UTC | |
by Burak (Chaplain) on Mar 17, 2007 at 12:23 UTC | |
|
Re: Checking to see if Taint mode is enabled
by kyle (Abbot) on Mar 17, 2007 at 00:27 UTC | |
by Anno (Deacon) on Mar 17, 2007 at 16:20 UTC | |
|
Re: Checking to see if Taint mode is enabled
by ferreira (Chaplain) on Mar 17, 2007 at 18:00 UTC | |
|
Re: Checking to see if Taint mode is enabled
by saintly (Scribe) on Mar 18, 2007 at 16:56 UTC |