From: Stefan Schantl Date: Mon, 13 Jan 2020 09:42:56 +0000 (+0100) Subject: dns.cgi: Fix id compare when adding a new nameserver. X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=611587cf29033a8cdcd86b02a5ec40bd8a9b2a08 dns.cgi: Fix id compare when adding a new nameserver. I do not know why perl when using "le" which means "less-or-equal" defines a "10" as "1". This commit fixes the issue that it was not possible to add more than 8 nameservers. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/dns.cgi b/html/cgi-bin/dns.cgi index ae7d4efa23..d35bc4eabb 100755 --- a/html/cgi-bin/dns.cgi +++ b/html/cgi-bin/dns.cgi @@ -168,7 +168,7 @@ if (($cgiparams{'SERVERS'} eq $Lang::tr{'save'}) || ($cgiparams{'SERVERS'} eq $L # The first allowed id is 3 to keep space for # possible ISP assigned DNS servers. - if ($id le "2") { + if ($id <= "2") { $id = "3"; } }