Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
42f82236
Commit
42f82236
authored
Apr 29, 2014
by
Till Brehm
Browse files
Fixed: FS#3477 - DNS Records with empty host cause errors in BIND
parent
5335a40f
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/bind_plugin.inc.php
View file @
42f82236
...
...
@@ -106,6 +106,7 @@ class bind_plugin {
if
(
is_array
(
$records
)
&&
!
empty
(
$records
)){
for
(
$i
=
0
;
$i
<
sizeof
(
$records
);
$i
++
){
if
(
$records
[
$i
][
'ttl'
]
==
0
)
$records
[
$i
][
'ttl'
]
=
''
;
if
(
$records
[
$i
][
'name'
]
==
''
)
$records
[
$i
][
'name'
]
=
'@'
;
//* Split TXT records, if nescessary
if
(
$records
[
$i
][
'type'
]
==
'TXT'
&&
strlen
(
$records
[
$i
][
'data'
])
>
255
)
{
$records
[
$i
][
'data'
]
=
implode
(
'" "'
,
str_split
(
$records
[
$i
][
'data'
],
255
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment