]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
zoneconf.cgi: Skip checks for non-existing zones
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Apr 2020 17:38:38 +0000 (17:38 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 7 Apr 2020 08:58:48 +0000 (08:58 +0000)
On systems with RED on PPP and no BLUE or ORANGE zones,
there would always be an error when handling non-existant input.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/zoneconf.cgi

index 6b864281814e1ca13084fb7fa2179c71f27ee810..d99a3e611d8255b5fc9e9e1e84e73573c148c4e6 100644 (file)
@@ -211,6 +211,8 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{"save"}) {
                        my $mac = $_->[0];
                        my $nic_access = $cgiparams{"ACCESS $uc $mac"};
 
+                       next unless ($nic_access);
+
                        if ($nic_access ne "NONE") {
                                if ($VALIDATE_nic_check{"RESTRICT $mac"}) { # If this interface is already assigned to RED in PPP mode, throw an error
                                        $VALIDATE_error = $Lang::tr{"zoneconf val ppp assignment error"};