Skip to content

Commit ef604a0

Browse files
n-ivprovokateurin
authored andcommitted
Update lib/private/AppFramework/Http/Output.php
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Nicolas Varlot <nicolas.varlot@ac-versailles.fr>
1 parent 097c1ec commit ef604a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/AppFramework/Http/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function setHeader($header) {
5555
foreach (['Content-Security-Policy:', 'Feature-Policy:'] as $prefix) {
5656
if (str_starts_with($header, $prefix)) {
5757
$value = ltrim(substr($header, strlen($prefix)));
58-
$directives = array_filter(array_map('trim', explode(';', $value)));
58+
$directives = array_filter(array_map(trim(...), explode(';', $value)));
5959
$segment = '';
6060
$first = true;
6161
foreach ($directives as $directive) {

0 commit comments

Comments
 (0)