]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/connections.cgi
connections.cgi: Fix page crash with IPsec connections with one subnet only
[ipfire-2.x.git] / html / cgi-bin / connections.cgi
index 85a9cd74501452edc39ac6111218f1c88a9e410e..96f09012b7bf3c21c3456d90eab8f20adfd91ddb 100644 (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);