summaryrefslogtreecommitdiff
path: root/lib/blib.pm
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-08-24 23:55:58 +0100
committerDavid Mitchell <davem@iabyn.com>2010-08-24 23:55:58 +0100
commit3f9bb6b034fc3e91c3576718cf4783d1f5fa55f9 (patch)
tree5fef2088234296c9eec83fd24c02908f3939fbb9 /lib/blib.pm
parent9b47cddefd9b4a322e6382c8979ceeb2c3ac25c9 (diff)
downloadperl-3f9bb6b034fc3e91c3576718cf4783d1f5fa55f9.tar.gz
detaint paths added by blib.pm
Diffstat (limited to 'lib/blib.pm')
-rw-r--r--lib/blib.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/blib.pm b/lib/blib.pm
index 854ec0b4f8..63855cb594 100644
--- a/lib/blib.pm
+++ b/lib/blib.pm
@@ -67,6 +67,11 @@ sub import
$dir = File::Spec->curdir unless ($dir);
die "$dir is not a directory\n" unless (-d $dir);
}
+
+ # detaint: if the user asked for blib, s/he presumably knew
+ # what s/he wanted
+ $dir = $1 if $dir =~ /^(.*)$/;
+
my $i = 5;
my($blib, $blib_lib, $blib_arch);
while ($i--)