diff options
Diffstat (limited to 'inc/HTTP/Headers.php')
-rw-r--r-- | inc/HTTP/Headers.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/HTTP/Headers.php b/inc/HTTP/Headers.php index 4d988ea05..254eb1ca8 100644 --- a/inc/HTTP/Headers.php +++ b/inc/HTTP/Headers.php @@ -14,7 +14,7 @@ class Headers * * @param array $policy */ - static public function contentSecurityPolicy($policy) + public static function contentSecurityPolicy($policy) { foreach ($policy as $key => $values) { // if the value is not an array, we also accept newline terminated strings @@ -28,7 +28,7 @@ class Headers $cspheader = 'Content-Security-Policy:'; foreach ($policy as $key => $values) { if ($values) { - $cspheader .= " $key " . join(' ', $values) . ';'; + $cspheader .= " $key " . implode(' ', $values) . ';'; } else { $cspheader .= " $key;"; } |