Skip to content

Commit 07ce955

Browse files
committed
Merge branch 'stable-3.1' of http://git.ispconfig.org/ispconfig/ispconfig3 into stable-3.1
2 parents a5c95e3 + 0064d59 commit 07ce955

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

interface/web/mail/mail_blacklist_edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ function onBeforeUpdate() {
8686
function onSubmit() {
8787
global $app, $conf;
8888

89+
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
90+
8991
// Check the client limits, if user is not the admin
9092
if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
9193
// Get the limits of the client

interface/web/mail/mail_whitelist_edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ function onBeforeUpdate() {
8585
function onSubmit() {
8686
global $app, $conf;
8787

88+
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
89+
8890
// Check the client limits, if user is not the admin
8991
if($_SESSION["s"]["user"]["typ"] != 'admin') { // if user is not admin
9092
// Get the limits of the client

server/lib/classes/cron.d/900-letsencrypt.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ public function onRunJob() {
4545
$version = $matches[2];
4646
if(($type != 'letsencrypt' && $type != 'certbot') || version_compare($version, '0.7.0', '<')) {
4747
exec($letsencrypt . ' -n renew');
48-
$app->services->restartServiceDelayed('httpd', 'reload');
48+
$app->services->restartServiceDelayed('httpd', 'force-reload');
4949
} else {
5050
$marker_file = '/usr/local/ispconfig/server/le.restart';
5151
$cmd = "echo '1' > " . $marker_file;
5252
exec($letsencrypt . ' -n renew --post-hook ' . escapeshellarg($cmd));
5353
if(file_exists($marker_file) && trim(file_get_contents($marker_file)) == '1') {
5454
unlink($marker_file);
55-
$app->services->restartServiceDelayed('httpd', 'reload');
55+
$app->services->restartServiceDelayed('httpd', 'force-reload');
5656
}
5757
}
5858
} else {
5959
exec($letsencrypt . ' -n renew');
60-
$app->services->restartServiceDelayed('httpd', 'reload');
60+
$app->services->restartServiceDelayed('httpd', 'force-reload');
6161
}
6262
}
6363

server/mods-available/web_module.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ function restartHttpd($action = 'restart') {
213213
$retval = array('output' => '', 'retval' => 0);
214214
if($action == 'restart') {
215215
$cmd = $app->system->getinitcommand($daemon, 'restart');
216+
} elseif($action == 'force-reload') {
217+
$cmd = $app->system->getinitcommand($daemon, 'force-reload');
216218
} else {
217219
$cmd = $app->system->getinitcommand($daemon, 'reload');
218220
}

0 commit comments

Comments
 (0)