- fixed some left-overs when using safe_exec which have not been escaped correctly, fixes #136

This commit is contained in:
Michael Kaufmann (d00p)
2010-04-12 05:49:16 +00:00
parent b11d0c5cd9
commit 0d3df6e1fe
4 changed files with 4 additions and 4 deletions

View File

@@ -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/');

View File

@@ -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']));
}
/**

View File

@@ -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()