From 6c00f6b797cf462d0fd456961dca356587265025 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 18 Aug 2005 16:13:22 +0000 Subject: Don't requires files accessed with ../ --- php.req | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php.req b/php.req index 2a3fb60..6c5b81c 100755 --- a/php.req +++ b/php.req @@ -47,7 +47,7 @@ foreach (@ARGV ? $ARGV : <> ) { next; } - next if ($x =~ m|^\./| or $x =~ /\$/); + next if ($x =~ m|^\.\.?/| or $x =~ /\$/); next unless ($x =~ /\.php$/); $req{$x} = 1; } @@ -66,7 +66,6 @@ foreach (@ARGV ? $ARGV : <> ) { next; } - next if ($x =~ /\$/); next unless ($x =~ /\.php$/); $x = "$file_dir/$x"; -- cgit v1.2.1