From: Alexander Marx Date: Mon, 6 Jan 2014 12:23:48 +0000 (+0100) Subject: firewall: Fix colouring when IPsec VPN subnets are denoted in CIDR. X-Git-Tag: v2.15-beta1~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95e9415ada2cd29399eec02c2748ca22792ec0a4;p=ipfire-2.x.git firewall: Fix colouring when IPsec VPN subnets are denoted in CIDR. --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index b313d4bb24..e7884ca272 100755 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -1351,6 +1351,7 @@ sub getcolor #Check if IP is part of a IPsec N2N network foreach my $key (sort keys %ipsecconf){ my ($a,$b) = split("/",$ipsecconf{$key}[11]); + $b=&General::iporsubtodec($b); if (&General::IpInSubnet($c,$a,$b)){ $tdcolor="style='background-color: $Header::colourvpn;color:white;'"; return;