From a77882639e42e40deea0ea2e811ed0644f51ebe7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 25 Apr 2024 00:50:17 +0200 Subject: [PATCH] wireguard.cgi: Rename editor to edit-net Signed-off-by: Michael Tremer --- html/cgi-bin/wireguard.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/cgi-bin/wireguard.cgi b/html/cgi-bin/wireguard.cgi index e82ab9331..5c38e1393 100644 --- a/html/cgi-bin/wireguard.cgi +++ b/html/cgi-bin/wireguard.cgi @@ -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(); -- 2.39.5