]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
wireguard.cgi: Rename editor to edit-net
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Apr 2024 22:50:17 +0000 (00:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:31 +0000 (16:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/wireguard.cgi

index e82ab93318297f7cf5ede14806df676b17160675..5c38e1393e55976a410363bb1c4e17ba2c3987d5 100644 (file)
@@ -139,7 +139,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) {
 
        # Jump to the editor
        if ($type eq "net") {
-               goto EDITOR;
+               goto EDITNET;
        }
 
 } elsif ($cgiparams{"ACTION"} eq "SAVE-PEER-NET") {
@@ -221,7 +221,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) {
        }
 
        # If there are any errors, we go back to the editor
-       goto EDITOR if (scalar @errormessages);
+       goto EDITNET if (scalar @errormessages);
 
        # Save the connection
        $peers{$key} = [
@@ -259,7 +259,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) {
 
 } elsif ($cgiparams{"ACTION"} eq $Lang::tr{'add'}) {
        if ($cgiparams{"TYPE"} eq "net") {
-               goto EDITOR;
+               goto EDITNET;
 
        # Ask the user what type they want
        } else {
@@ -520,7 +520,7 @@ END
 
        exit(0);
 
-EDITOR:
+EDITNET:
        # Send HTTP Headers
        &Header::showhttpheaders();