Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(errors): nested forward 404 calls are less likely to abruptly fail #9577

Merged
merged 1 commit into from
Mar 28, 2016

Conversation

mrclay
Copy link
Member

@mrclay mrclay commented Mar 28, 2016

Sometimes while drawing the error page, plugin code may request the error page again (often code within the pagesetup event). We no longer fail with an empty page on the 2nd call since this is more common that expected.

On the 3rd call we assume an infinite loop and just use a Location header to send the user to the home page.

Fixes #9476

Sometimes while drawing the error page, plugin code may request the error
page again (often code within the `pagesetup` event). We no longer fail
with an empty page on the 2nd call since this is more common that expected.

On the 3rd call we assume an infinite loop and just use a Location header
to send the user to the home page.

Fixes Elgg#9476
@mrclay
Copy link
Member Author

mrclay commented Mar 28, 2016

@juho-jaakkola @beck24 any thoughts here?

@juho-jaakkola
Copy link
Member

LGTM

@hypeJunction hypeJunction merged commit f27e593 into Elgg:2.1 Mar 28, 2016
@mrclay mrclay deleted the inf404_21 branch April 11, 2016 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants