solve one taint problem
[p5sagit/p5-mst-13.2.git] / lib / Cwd.pm
index 5b5f216..6f3cb7c 100644 (file)
@@ -187,6 +187,7 @@ $pwd_cmd ||= 'pwd';
 
 # The 'natural and safe form' for UNIX (pwd may be setuid root)
 sub _backtick_pwd {
+    local @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)};
     my $cwd = `$pwd_cmd`;
     # Belt-and-suspenders in case someone said "undef $/".
     local $/ = "\n";