From: Michael Tremer Date: Wed, 24 Apr 2024 22:50:17 +0000 (+0200) Subject: wireguard.cgi: Rename editor to edit-net X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a77882639e42e40deea0ea2e811ed0644f51ebe7;p=people%2Fstevee%2Fipfire-2.x.git wireguard.cgi: Rename editor to edit-net Signed-off-by: Michael Tremer --- 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();