Skip to content

Commit 9368021

Browse files
helmoTill Brehm
authored andcommitted
Remove accidental quotes around a record, #6618
1 parent 5794207 commit 9368021

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

interface/web/dns/dns_edit_base.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ function onSubmit() {
129129

130130
if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."<br>";
131131

132+
// Remove accidental quotes around a record.
133+
$matches = array();
134+
if(preg_match('/^"(.*)"$/', $this->dataRecord["data"], $matches)) {
135+
$this->dataRecord["data"] = $matches[1];
136+
}
137+
132138
// Set the server ID of the rr record to the same server ID as the parent record.
133139
$this->dataRecord["server_id"] = $soa["server_id"];
134140

0 commit comments

Comments
 (0)