mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix registered shutdown function not handling responsibility for outputting redirection response
This commit is contained in:
parent
10f93b71ae
commit
5fcd7d084f
@ -61,9 +61,10 @@ class ErrorControlChainMiddleware implements HTTPMiddleware
|
||||
}
|
||||
})
|
||||
// Finally if a token was requested but there was an error while figuring out if it's allowed, do it anyway
|
||||
->thenIfErrored(function () use ($reloadToken, &$result) {
|
||||
->thenIfErrored(function () use ($reloadToken) {
|
||||
if ($reloadToken) {
|
||||
$result = $reloadToken->reloadWithToken();
|
||||
$result->output();
|
||||
}
|
||||
})
|
||||
->execute();
|
||||
|
Loading…
Reference in New Issue
Block a user