mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-24 01:25:49 +00:00
zone.js: removed NS glue validation check from front end to allow correct validation check to be done at backend.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user