Skip to content

Commit c1f80c3

Browse files
committed
Fix incorrect use of redirectTrustedURL-util
1 parent a613282 commit c1f80c3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

public/admin/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
$headers = $config->getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS);
1313
$redirect = Module::getModuleURL('admin/');
14-
$response = $httpUtils->redirectTrustedURL($redirect);
14+
$response = new HTTP\RunnableResponse([$httpUtils, 'redirectTrustedURL'], [$redirect]);
1515
foreach ($headers as $header => $value) {
1616
// Some pages may have specific requirements that we must follow. Don't touch them.
1717
if (!$response->headers->has($header)) {

public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
$headers = $config->getOptionalArray('headers.security', Configuration::DEFAULT_SECURITY_HEADERS);
1313
$redirect = $config->getOptionalString('frontpage.redirect', Module::getModuleURL('core/welcome'));
14-
$response = $httpUtils->redirectTrustedURL($redirect);
14+
$response = new HTTP\RunnableResponse([$httpUtils, 'redirectTrustedURL'], [$redirect]);
1515
foreach ($headers as $header => $value) {
1616
// Some pages may have specific requirements that we must follow. Don't touch them.
1717
if (!$response->headers->has($header)) {

0 commit comments

Comments
 (0)