allow usage of up to 255 characters in a txt record, fixes #548
Signed-off-by: Michael Kaufmann <michael.kaufmann@aixit.com>
This commit is contained in:
@@ -43,9 +43,9 @@ class DnsEntry
|
|||||||
{
|
{
|
||||||
$_content = $this->content;
|
$_content = $this->content;
|
||||||
// check content length for txt records for bind9 (multiline)
|
// check content length for txt records for bind9 (multiline)
|
||||||
if (Settings::Get('system.dns_server') != 'pdns' && $this->type == 'TXT' && strlen($_content) >= 64) {
|
if (Settings::Get('system.dns_server') != 'pdns' && $this->type == 'TXT' && strlen($_content) >= 255) {
|
||||||
// split string
|
// split string
|
||||||
$_contentlines = str_split($_content, 63);
|
$_contentlines = str_split($_content, 254);
|
||||||
// first line
|
// first line
|
||||||
$_l = array_shift($_contentlines);
|
$_l = array_shift($_contentlines);
|
||||||
// check for starting quote
|
// check for starting quote
|
||||||
|
|||||||
Reference in New Issue
Block a user