Skip to content

Commit

Permalink
An if might exit with no sub-members #16
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed May 16, 2020
1 parent ee43333 commit 85c5943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,8 @@ sub feature_list_web_redirects
my @rewrites = &find("rewrite", $server);
foreach my $i (&find("if", $server)) {
my @w = @{$i->{'words'}};
if (@{$i->{'members'}} == 1 &&
if ($i->{'type'} &&
@{$i->{'members'}} == 1 &&
$w[0] eq "\$scheme" && $w[1] eq "=" &&
($w[2] eq "http" || $w[2] eq "https")) {
# May contain relevant rewrites
Expand Down

0 comments on commit 85c5943

Please sign in to comment.