Skip to content

Commit 08f8b84

Browse files
author
Till Brehm
committed
Merge branch 'master' into 'master'
Master See merge request !598
2 parents b79d0c6 + 0359911 commit 08f8b84

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CHANGE `warnbannedrecip` `warnbannedrecip` ENUM('N','Y') CHARACTER SET utf8 COLL
3131
CHANGE `warnbadhrecip` `warnbadhrecip` ENUM('N','Y') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'N';
3232

3333
CREATE TABLE IF NOT EXISTS `dns_ssl_ca` (
34-
`id` int(10) unsigned NOT AUTO_INCREMENT,
34+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
3535
`sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
3636
`sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
3737
`sys_perm_user` varchar(5) NOT NULL DEFAULT '',
@@ -42,8 +42,9 @@ CREATE TABLE IF NOT EXISTS `dns_ssl_ca` (
4242
`ca_issue` varchar(255) NOT NULL DEFAULT '',
4343
`ca_wildcard` enum('Y','N') NOT NULL DEFAULT 'N',
4444
`ca_iodef` text NOT NULL,
45-
`ca_critical` tinyint(1) NOT NULL DEFAULT '0'
46-
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
45+
`ca_critical` tinyint(1) NOT NULL DEFAULT '0',
46+
PRIMARY KEY (`id`)
47+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
4748

4849
INSERT INTO `dns_ssl_ca` (`id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `active`, `ca_name`, `ca_issue`, `ca_wildcard`, `ca_iodef`, `ca_critical`) VALUES
4950
(NULL, 1, 1, 'riud', 'riud', '', 'Y', 'Comodo', 'comodoca.com', 'Y', '', 0),

install/sql/ispconfig3.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ CREATE TABLE `dns_rr` (
507507
--
508508

509509
CREATE TABLE IF NOT EXISTS `dns_ssl_ca` (
510-
`id` int(10) unsigned NOT AUTO_INCREMENT,
510+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
511511
`sys_userid` int(11) unsigned NOT NULL DEFAULT '0',
512512
`sys_groupid` int(11) unsigned NOT NULL DEFAULT '0',
513513
`sys_perm_user` varchar(5) NOT NULL DEFAULT '',
@@ -518,8 +518,9 @@ CREATE TABLE IF NOT EXISTS `dns_ssl_ca` (
518518
`ca_issue` varchar(255) NOT NULL DEFAULT '',
519519
`ca_wildcard` enum('Y','N') NOT NULL DEFAULT 'N',
520520
`ca_iodef` text NOT NULL,
521-
`ca_critical` tinyint(1) NOT NULL DEFAULT '0'
522-
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
521+
`ca_critical` tinyint(1) NOT NULL DEFAULT '0',
522+
PRIMARY KEY (`id`)
523+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
523524

524525
INSERT INTO `dns_ssl_ca` (`id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `active`, `ca_name`, `ca_issue`, `ca_wildcard`, `ca_iodef`, `ca_critical`) VALUES
525526
(NULL, 1, 1, 'riud', 'riud', '', 'Y', 'Comodo', 'comodoca.com', 'Y', '', 0),

interface/web/admin/form/system_config.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,11 +653,11 @@
653653
'fields' => array (),
654654
'plugins' => array (
655655
'dns_ca' => array (
656-
'class' => 'plugin_dns_ca',
656+
'class' => 'plugin_system_config_dns_ca',
657657
'options' => array()
658658
),
659659
'dns_ca_list' => array (
660-
'class' => 'plugin_dns_ca_list',
660+
'class' => 'plugin_system_config_dns_ca_list',
661661
'options' => array()
662662
)
663663
)

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)