ruzam has asked for the wisdom of the Perl Monks concerning the following question:
But it appears this isn't sufficient. To fully untaint the path, the code needs to match/assign from different variables more like:$entry =~ /^(.*)$/s; $entry = $1; # untaint
Hopefully someday, File::Path will be corrected. But in the mean time, my application (which has properly untainted the directory name in the first place) can't call rmtree() without bombing.$_ = $entry; ($entry) = /^(.*)$/s; # result and source are different
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inconsistency in untaint
by shmem (Chancellor) on Aug 30, 2006 at 17:29 UTC | |
by ruzam (Curate) on Aug 30, 2006 at 17:52 UTC | |
by shmem (Chancellor) on Aug 30, 2006 at 18:10 UTC | |
by ruzam (Curate) on Aug 30, 2006 at 18:32 UTC | |
by ruzam (Curate) on Aug 30, 2006 at 17:45 UTC | |
|
Re: inconsistency in untaint
by nerfherder (Monk) on Feb 08, 2011 at 02:06 UTC |