aboutsummaryrefslogtreecommitdiffstats
path: root/php.req
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2005-08-18 16:13:22 +0000
committerPascal Terjan <pterjan@mandriva.org>2005-08-18 16:13:22 +0000
commit6c00f6b797cf462d0fd456961dca356587265025 (patch)
tree60679db876f8c27f061ae2866c5385bea4efcc61 /php.req
parent3b164fca38b6b1143d4c7ac59bade95c002ef930 (diff)
downloadrpm-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-xphp.req3
1 files changed, 1 insertions, 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";