- fixed some left-overs when using safe_exec which have not been escaped correctly, fixes #136
This commit is contained in:
@@ -137,7 +137,7 @@ class bind
|
||||
fclose($bindconf_file_handler);
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - froxlor_bind.conf written' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'froxlor_bind.conf written');
|
||||
safe_exec($this->settings['system']['bindreload_command']);
|
||||
safe_exec(escapeshellcmd($this->settings['system']['bindreload_command']));
|
||||
fwrite($this->debugHandler, ' cron_tasks: Task4 - Bind9 reloaded' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'Bind9 reloaded');
|
||||
$domains_dir = makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/');
|
||||
|
||||
@@ -59,7 +59,7 @@ class apache
|
||||
{
|
||||
fwrite($this->debugHandler, ' apache::reload: reloading apache' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading apache');
|
||||
safe_exec($this->settings['system']['apachereload_command']);
|
||||
safe_exec(escapeshellcmd($this->settings['system']['apachereload_command']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -63,7 +63,7 @@ class lighttpd
|
||||
{
|
||||
fwrite($this->debugHandler, ' lighttpd::reload: reloading lighttpd' . "\n");
|
||||
$this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading lighttpd');
|
||||
safe_exec($this->settings['system']['apachereload_command']);
|
||||
safe_exec(escapeshellcmd($this->settings['system']['apachereload_command']));
|
||||
}
|
||||
|
||||
public function createIpPort()
|
||||
|
||||
Reference in New Issue
Block a user