diff options
Diffstat (limited to 'php.req')
-rwxr-xr-x | php.req | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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"; |