diff options
-rw-r--r-- | app/Core/Response.php | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/app/Core/Response.php b/app/Core/Response.php index 1ce42ad3..d42a8f1e 100644 --- a/app/Core/Response.php +++ b/app/Core/Response.php @@ -212,24 +212,7 @@ class Response $policies['default-src'] = "'self'"; $values = ''; - foreach ($policies as $policy => $hosts) { - - if (is_array($hosts)) { - - $acl = ''; - - foreach ($hosts as &$host) { - - if ($host === '*' || $host === 'self' || strpos($host, 'http') === 0) { - $acl .= $host.' '; - } - } - } - else { - - $acl = $hosts; - } - + foreach ($policies as $policy => $acl) { $values .= $policy.' '.trim($acl).'; '; } |