aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";