Dominique Quatravaux wrote:
Stas Bekman wrote:
>
> So anybody has any other ideas, on a better function that will tell
> us whether a given scalar is tainted, besides adding a helper XS
> sub which will just check the tainted flag?
Taken from perlsec(1):
sub is_tainted {
return ! eval {
join('',@_), kill 0;
1;
};
}
Thanks Dominique, I'll try that.
Hmm, I can't find that in perlsec. which perl's manpage are you looking at?
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]