Skip to content

Commit 012fb40

Browse files
author
Till Brehm
committed
Merge branch '6618-accidental-quotes-around-record' into 'develop'
Remove accidental quotes around a record, #6618 Closes #6618 See merge request ispconfig/ispconfig3!1828
2 parents 5794207 + 9368021 commit 012fb40

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)