Commit fd172c63 authored by Franco Fichtner's avatar Franco Fichtner

firewall: refactor that one other download_file() call

parent 9d250cd1
...@@ -50,8 +50,7 @@ function update_alias_url_data() ...@@ -50,8 +50,7 @@ function update_alias_url_data()
unlink($temp_filename); unlink($temp_filename);
$verify_ssl = isset($config['system']['checkaliasesurlcert']); $verify_ssl = isset($config['system']['checkaliasesurlcert']);
mkdir($temp_filename); mkdir($temp_filename);
download_file($alias_url, $temp_filename . "/aliases", $verify_ssl); if (download_file($alias_url, $temp_filename . "/aliases", $verify_ssl)) {
if (file_exists("{$temp_filename}/aliases")) {
$fd = @fopen("{$temp_filename}/aliases", 'r'); $fd = @fopen("{$temp_filename}/aliases", 'r');
if (!$fd) { if (!$fd) {
log_error(sprintf('Could not process aliases from alias: %s', $alias_url)); log_error(sprintf('Could not process aliases from alias: %s', $alias_url));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment