mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7168 from open-sausages/pulls/4.0/chain-out-there
BUG Fix registered shutdown function not handling responsibility for outputting redirection response
This commit is contained in:
commit
243304c633
@ -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