summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Core/Response.php19
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).'; ';
}