Skip to content

Commit 3d4fa4a

Browse files
committed
Fix: properly check for existing headers
1 parent 6f84bae commit 3d4fa4a

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

public/admin/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$response = $httpUtils->redirectTrustedURL($redirect);
1515
foreach ($headers as $header => $value) {
1616
// Some pages may have specific requirements that we must follow. Don't touch them.
17-
if (!$response->has($header)) {
17+
if (!$response->headers->has($header)) {
1818
$response->headers->set($header, $value);
1919
}
2020
}

public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$response = $httpUtils->redirectTrustedURL($redirect);
1515
foreach ($headers as $header => $value) {
1616
// Some pages may have specific requirements that we must follow. Don't touch them.
17-
if (!$response->has($header)) {
17+
if (!$response->headers->has($header)) {
1818
$response->headers->set($header, $value);
1919
}
2020
}

public/module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
$response = Module::process();
1818
foreach ($headers as $header => $value) {
1919
// Some pages may have specific requirements that we must follow. Don't touch them.
20-
if (!$response->has($header)) {
20+
if (!$response->headers->has($header)) {
2121
$response->headers->set($header, $value);
2222
}
2323
}

public/saml2/idp/ArtifactResolutionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
$response = $controller->ArtifactResolutionService($request);
2424
foreach ($headers as $header => $value) {
2525
// Some pages may have specific requirements that we must follow. Don't touch them.
26-
if (!$response->has($header)) {
26+
if (!$response->headers->has($header)) {
2727
$response->headers->set($header, $value);
2828
}
2929
}

public/saml2/idp/SSOService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
$response = $controller->singleSignOnService($request)->send();
2424
foreach ($headers as $header => $value) {
2525
// Some pages may have specific requirements that we must follow. Don't touch them.
26-
if (!$response->has($header)) {
26+
if (!$response->headers->has($header)) {
2727
$response->headers->set($header, $value);
2828
}
2929
}

public/saml2/idp/SingleLogoutService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
$response = $controller->singleLogout($request)->send();
2424
foreach ($headers as $header => $value) {
2525
// Some pages may have specific requirements that we must follow. Don't touch them.
26-
if (!$response->has($header)) {
26+
if (!$response->headers->has($header)) {
2727
$response->headers->set($header, $value);
2828
}
2929
}

public/saml2/idp/initSLO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
$response = $controller->initSingleLogout($request);
2424
foreach ($headers as $header => $value) {
2525
// Some pages may have specific requirements that we must follow. Don't touch them.
26-
if (!$response->has($header)) {
26+
if (!$response->headers->has($header)) {
2727
$response->headers->set($header, $value);
2828
}
2929
}

public/saml2/idp/metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
$response = $controller->metadata($request);
2424
foreach ($headers as $header => $value) {
2525
// Some pages may have specific requirements that we must follow. Don't touch them.
26-
if (!$response->has($header)) {
26+
if (!$response->headers->has($header)) {
2727
$response->headers->set($header, $value);
2828
}
2929
}

0 commit comments

Comments
 (0)