[rt.cpan.org #45885] File::Spec: Don’t use tainted tmpdir in 5.6
authorFather Chrysostomos <sprout@cpan.org>
Sat, 17 Dec 2011 07:27:49 +0000 (23:27 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 17 Dec 2011 07:27:49 +0000 (23:27 -0800)
commit63a0dcf71fbcd47a260abe81c68ea3c2bdb493ba
tree82b1ba3331f603acafb10cefc4916a507ba92991
parentb8f00b0e68ea7f3f6fd2adeddf74dbfd2133578f
[rt.cpan.org #45885] File::Spec: Don’t use tainted tmpdir in 5.6

Perl 5.6 doesn’t have ${^TAINT}, so the taint check in
File::Spec::Unix->_tmpdir was skipped.  This commit adds a taint check
using eval { eval $safe_substring } for 5.6.
MANIFEST
dist/Cwd/lib/File/Spec/Unix.pm
dist/Cwd/t/Spec-taint.t [new file with mode: 0644]