From 2378447cee4e982284ac2bb7ab9c8bc8e4e763ce Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 30 Nov 2024 13:19:31 +0530 Subject: [PATCH] zone.js: removed NS glue validation check from front end to allow correct validation check to be done at backend. --- DnsServerCore/www/js/zone.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/DnsServerCore/www/js/zone.js b/DnsServerCore/www/js/zone.js index 17cc257f..9ed1208f 100644 --- a/DnsServerCore/www/js/zone.js +++ b/DnsServerCore/www/js/zone.js @@ -4151,12 +4151,6 @@ function addRecord() { } var glue = cleanTextList($("#txtAddEditRecordDataNsGlue").val()); - var subDomainName = $("#txtAddEditRecordName").val(); - if ((glue !== "") && ((subDomainName === "") || (subDomainName === "@"))) { - showAlert("warning", "Invalid!", "The zone's own NS records cannot have glue addresses. Please add separate A/AAAA records in the zone instead.", divAddEditRecordAlert); - $("#txtAddEditRecordDataNsGlue").focus(); - return; - } apiUrl += "&nameServer=" + encodeURIComponent(nameServer) + "&glue=" + encodeURIComponent(glue); break; @@ -5018,12 +5012,6 @@ function updateRecord() { } var glue = cleanTextList($("#txtAddEditRecordDataNsGlue").val()); - var subDomainName = $("#txtAddEditRecordName").val(); - if ((glue !== "") && ((subDomainName === "") || (subDomainName === "@"))) { - showAlert("warning", "Invalid!", "The zone's own NS records cannot have glue addresses. Please add separate A/AAAA records in the zone instead.", divAddEditRecordAlert); - $("#txtAddEditRecordDataNsGlue").focus(); - return; - } apiUrl += "&nameServer=" + encodeURIComponent(nameServer) + "&newNameServer=" + encodeURIComponent(newNameServer) + "&glue=" + encodeURIComponent(glue); break;