We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5794207 commit 9368021Copy full SHA for 9368021
interface/web/dns/dns_edit_base.php
@@ -129,6 +129,12 @@ function onSubmit() {
129
130
if($this->checkDuplicate()) $app->tform->errorMessage .= $app->tform->lng("data_error_duplicate")."<br>";
131
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
+
138
// Set the server ID of the rr record to the same server ID as the parent record.
139
$this->dataRecord["server_id"] = $soa["server_id"];
140
0 commit comments