diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2005-08-18 16:13:22 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2005-08-18 16:13:22 +0000 |
commit | 6c00f6b797cf462d0fd456961dca356587265025 (patch) | |
tree | 60679db876f8c27f061ae2866c5385bea4efcc61 /php.req | |
parent | 3b164fca38b6b1143d4c7ac59bade95c002ef930 (diff) | |
download | rpm-setup-6c00f6b797cf462d0fd456961dca356587265025.tar rpm-setup-6c00f6b797cf462d0fd456961dca356587265025.tar.gz rpm-setup-6c00f6b797cf462d0fd456961dca356587265025.tar.bz2 rpm-setup-6c00f6b797cf462d0fd456961dca356587265025.tar.xz rpm-setup-6c00f6b797cf462d0fd456961dca356587265025.zip |
Don't requires files accessed with ../
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"; |