diff --git a/interface/web/dns/dns_edit_base.php b/interface/web/dns/dns_edit_base.php index 3d15ec1d8636402fef136de05394826f618b531f..2d6d4081e73a0b690841c0d5e4238d2d4e4927b4 100644 --- a/interface/web/dns/dns_edit_base.php +++ b/interface/web/dns/dns_edit_base.php @@ -129,6 +129,12 @@ class dns_page_action extends tform_actions { if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."
"; + // Remove accidental quotes around a record. + $matches = array(); + if(preg_match('/^"(.*)"$/', $this->dataRecord["data"], $matches)) { + $this->dataRecord["data"] = $matches[1]; + } + // Set the server ID of the rr record to the same server ID as the parent record. $this->dataRecord["server_id"] = $soa["server_id"];