> 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
3 matches
Mail list logo