Update class.DnsEntry.php

Klammerfehler bei Bind, PowerDNS braucht ja keinen Linesplit.
This commit is contained in:
lonesomewalker
2018-01-16 14:57:42 +01:00
committed by GitHub
parent d16a7b2089
commit 52c7839b9b

View File

@@ -52,7 +52,7 @@ class DnsEntry
if (substr($_l, 0, 1) == '"') {
$_l = substr($_l, 1);
}
$_content = '( "' . $_l . '"' . PHP_EOL;
$_content = $_l . '"' . PHP_EOL;
$_l = array_pop($_contentlines);
// check for ending quote
if (substr($_l, -1) == '"') {
@@ -63,7 +63,7 @@ class DnsEntry
$_content .= "\t\t\t\t" . '"' . $_cl . '"' . PHP_EOL;
}
// last line
$_content .= "\t\t\t\t" . '"'.$_l.'" )';
$_content .= "\t\t\t\t" . '"'.$_l;
}
$result = $this->record . "\t" . $this->ttl . "\t" . $this->class . "\t" . $this->type . "\t" . (($this->priority >= 0 && ($this->type == 'MX' || $this->type == 'SRV')) ? $this->priority . "\t" : "") . $_content . PHP_EOL;
return $result;