Commit 42f82236 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#3477 - DNS Records with empty host cause errors in BIND

parent 5335a40f
......@@ -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));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment