mnology has asked for the wisdom of the Perl Monks concerning the following question:
Could someone elucidate on why when I'm taint checking a scalar:
Then passing that to an objects method:($filename) = $filename =~ m{([\w./]+)}smx or croak "Bah!";
why $filename gets tainted in side of the method? I'm under the impression that passing a taint checked scalar should leave $filename untainted while it's in the objects method.
In particular. I'm using Net::SFTP::Foreign toWhere $local has been checked as above. When running with -T I get:
Insecure dependency in chmod while running with -T switch at ../Net/SFTP/Foreign.pm line 373.
-T is a must have.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing taint checked scalars
by Joost (Canon) on Feb 03, 2006 at 23:30 UTC | |
|
Re: Passing taint checked scalars
by mnology (Acolyte) on Feb 04, 2006 at 00:34 UTC | |
|
Re: Passing taint checked scalars
by Anonymous Monk on Feb 04, 2006 at 05:47 UTC | |
by martin (Friar) on Feb 04, 2006 at 08:06 UTC | |
by Anonymous Monk on Feb 07, 2006 at 00:26 UTC |