From patchwork Tue Jan 14 12:53:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2694 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 47xr4m2l9Qz3xYB for ; Tue, 14 Jan 2020 12:54:16 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 47xr4k5MXtz2sD; Tue, 14 Jan 2020 12:54:14 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 47xr4k3M69z2xnq; Tue, 14 Jan 2020 12:54:14 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 47xr4h3HDBz2xcM for ; Tue, 14 Jan 2020 12:54:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 47xr4g5zYGz2Jy; Tue, 14 Jan 2020 12:54:11 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1579006452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XTIFQ+RvG9mjLdZP2IhtHHVgrXZk6RQGIKAeL8Kp+Ms=; b=TPfzb8DVdM9Ej63on/mGK4gBYVi7skjWbsWbNehK4LtTX5czzjMsNnKmUkw7V9io7oMoy1 xse8OoKElfN/57Aw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1579006452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XTIFQ+RvG9mjLdZP2IhtHHVgrXZk6RQGIKAeL8Kp+Ms=; b=cz8niIhkOD/MqNLx+7VU4Y8NmmPux8MTq9i9IacHsrU9L8c6gqZq5Kg044pKmeUmqr3kuD NWmmBuXIeIf9b72r+BTO3eGhJNZLdsMXv2FcL+AICmDs7WshQF6pAnYerWpRhWfg4GCV+y So8UB2mkjpg0051u0mqGEiQZSDv0pIaquzAlKfRh60+otwOre1iX42pAgkcsmX0LuOteau 55b+K6K2fkzKsa2Z4iKZQm7RCnZ4CBqrtgrBRVScQTa5/MbxoQ1O6m7wPG5kGPJX6pCyVt HjYLRU8yCBckpqHi6kn7gT1VnGxtB9BWyctOJR26PrDWkn4IaV5wGzlLlly8tw== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] dns.cgi: Fix ID and greater than checks. Date: Tue, 14 Jan 2020 13:53:59 +0100 Message-Id: <20200114125359.121861-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=stevee smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl --- html/cgi-bin/dns.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/dns.cgi b/html/cgi-bin/dns.cgi index 385c7be44..11415cdf8 100755 --- a/html/cgi-bin/dns.cgi +++ b/html/cgi-bin/dns.cgi @@ -634,7 +634,7 @@ END # Nameservers with an ID's of one or two are ISP assigned, # and we cannot perform any actions on them, so hide the tools for # them. - if ($id gt "2") { + if ($id > 2) { print < @@ -677,7 +677,7 @@ END print"\n"; # Check if the usage of the ISP nameservers is enabled and there are more than 2 servers. - if (($settings{'USE_ISP_NAMESERVERS'} eq "on") && ($server_amount gt "2")) { + if (($settings{'USE_ISP_NAMESERVERS'} eq "on") && ($server_amount > 2)) { print <
  $Lang::tr{'legend'}: