connections.cgi: Fix page crash with IPsec connections with one subnet only

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2015-12-12 09:50:19 +00:00
parent ea6fa9de5a
commit ffeaaef618
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ etc/rc.d/rc0.d/K51vnstat
etc/rc.d/rc3.d/S01vnstat
etc/rc.d/rc6.d/K51vnstat
opt/pakfire/lib/functions.pl
srv/web/ipfire/cgi-bin/connections.cgi
srv/web/ipfire/cgi-bin/routing.cgi
usr/sbin/convert-portfw
var/ipfire/general-functions.pl

View File

@@ -262,7 +262,7 @@ close(IPSEC);
foreach my $line (@ipsec) {
my @vpn = split(',', $line);
my @subnets = split('|', $vpn[12]);
my @subnets = split(/\|/, $vpn[12]);
for my $subnet (@subnets) {
my ($network, $mask) = split("/", $subnet);