> perldoc perlsec is your friend! :)
>
> Bottom line is that globs are *always* tainted, as is anything that
> relies on shell processing (csh being how globbing is done).
Yep, I realise this, but what I didn't have is an alternative. There's
lots of info on de-tainting user input, but basicall
> I don't "know" the answer to this question, but in your shoes I'd start by
> re-writing the above as:
That (with a couple typo's fixed :) does the trick beautifully! Thanks
for the pointer, I figured there had to be a way to do it.
Adam.
Internet Alaska
Adam Shand wrote:
> How do I untaint the glob, or better yet access it so that it's not
> tainted to start with (if that's possible)? The files I'm accessing are
> safe as only root can write to them, but I'd like to do this the 'right
> way'.
>
> I can't find anything relevant to this in the docs
Howdy...
Sorry for this stupid question but I'm hoping someone can shed some light,
and I'm a 'Perl Beginner'... I'm writing a suid perl script which needs
to search through a whole bunch of files in a directory and return some
information. It all works fine except that the tainting doesn't li
4 matches
Mail list logo