Skip to content

Commit 91a7ecb

Browse files
author
Marius Burkard
committed
Merge branch 'develop' into 'develop'
wrong main.cf after install (Fixes #5963) Closes #5963 See merge request ispconfig/ispconfig3!1352
2 parents 1adea00 + d903931 commit 91a7ecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ public function configure_dovecot() {
14581458
}
14591459

14601460
$config_dir = $conf['postfix']['config_dir'];
1461-
$quoted_config_dir = preg_quote($config_dir, '/');
1461+
$quoted_config_dir = preg_quote($config_dir, '|');
14621462
$postfix_version = `postconf -d mail_version 2>/dev/null`;
14631463
$postfix_version = preg_replace( '/mail_version\s*=\s*(.*)\s*/', '$1', $postfix_version );
14641464

@@ -1504,7 +1504,7 @@ public function configure_dovecot() {
15041504
if ($configure_lmtp && $conf['mail']['content_filter'] === 'amavisd') {
15051505
for ($i = 0; isset($new_options[$i]); $i++) {
15061506
if ($new_options[$i] == 'reject_unlisted_recipient') {
1507-
array_splice($new_options, $i+1, 0, array("check_recipient_access proxy:mysql:${quoted_config_dir}/mysql-verify_recipients.cf"));
1507+
array_splice($new_options, $i+1, 0, array("check_recipient_access proxy:mysql:${config_dir}/mysql-verify_recipients.cf"));
15081508
break;
15091509
}
15101510
}

0 commit comments

Comments
 (0)