From e31c828f3594497b3b013e3ce899a40422bdb429 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 6 Aug 2016 06:31:15 +0200 Subject: [PATCH] Fixed formatting Nothing added, just a formatting fix --- scripts/jobs/cron_tasks.inc.http.30.nginx.php | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/scripts/jobs/cron_tasks.inc.http.30.nginx.php b/scripts/jobs/cron_tasks.inc.http.30.nginx.php index de1c69be..92be94d0 100644 --- a/scripts/jobs/cron_tasks.inc.http.30.nginx.php +++ b/scripts/jobs/cron_tasks.inc.http.30.nginx.php @@ -600,17 +600,16 @@ class nginx extends HttpConfigBase { } } - if (isset($domain_or_ip['hsts']) && $domain_or_ip['hsts'] > 0) { - - $vhost_content .= 'add_header Strict-Transport-Security "max-age=' . $domain_or_ip['hsts']; - if ($domain_or_ip['hsts_sub'] == 1) { - $vhost_content .= '; includeSubdomains'; - } - if ($domain_or_ip['hsts_preload'] == 1) { - $vhost_content .= '; preload'; - } - $vhost_content .= '";' . "\n"; - } + if (isset($domain_or_ip['hsts']) && $domain_or_ip['hsts'] > 0) { + $vhost_content .= 'add_header Strict-Transport-Security "max-age=' . $domain_or_ip['hsts']; + if ($domain_or_ip['hsts_sub'] == 1) { + $vhost_content .= '; includeSubdomains'; + } + if ($domain_or_ip['hsts_preload'] == 1) { + $vhost_content .= '; preload'; + } + $vhost_content .= '";' . "\n"; + } } }