From: Stefan Schantl Date: Sun, 11 Jul 2021 17:54:17 +0000 (+0200) Subject: firewall.cgi: Fix multiple usage of configured net or interface. X-Git-Tag: v2.27-core160~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04b6a4baa80a26a6e097c2194ef2b57a056083c2;p=ipfire-2.x.git firewall.cgi: Fix multiple usage of configured net or interface. When configuring a standard network as source or target the same interface would be pre-selected as firewall interface when editing an existing rule. In case an existing input rule with an configured firewall interface should be changed, the same network device has been pre-selected in the standard networks dropdown box. This easily confuses users and may lead to false configurations when saving an edited rule. Signed-off-by: Stefan Schantl Signed-off-by: Arne Fitzenreiter --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index d3cddfa239..8d6adee966 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -1032,7 +1032,12 @@ END { next if($defaultNetworks{$network}{'NAME'} eq "IPFire"); print "