]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Accept an empty value for ENABLED
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 8 Jul 2025 08:44:30 +0000 (10:44 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Jul 2025 09:39:09 +0000 (09:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index 60997d59ce5c16aed576f3eee823b62d1247a090..0be4ea0b2dc5a3869680da29a33135bf0e1597b5 100644 (file)
@@ -4050,7 +4050,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
                }
        }
 
-       if ($cgiparams{'ENABLED'} !~ /^(on|off)$/) {
+       if ($cgiparams{'ENABLED'} !~ /^(on|off|)$/) {
            $errormessage = $Lang::tr{'invalid input'};
            goto VPNCONF_ERROR;
        }