Skip to content

Commit 0359911

Browse files
committed
update caa-server-plugin
1 parent 9344552 commit 0359911

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,8 @@ function soa_update($event_name, $data) {
271271
unset($temp[0]);
272272
$records[$i]['data'] = implode(' ', $temp);
273273
$data_new = str_replace(array('"', ' '), '', $records[$i]['data']);
274-
//TODO: check if need \t and 00
275-
$hex = unpack('H*', "\t$data_new");
276-
$hex[1] = '00'.$hex[1];
274+
$hex = unpack('H*', $data_new);
275+
$hex[1] = '0005'.strtoupper($hex[1]);
277276
$length = strlen($hex[1])/2;
278277
$data_new = "\# $length $hex[1]";
279278
$records[$i]['data'] = $data_new;

0 commit comments

Comments
 (0)