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

Custom handler404 #3469

Merged
merged 2 commits into from
Jun 26, 2019
Merged

Custom handler404 #3469

merged 2 commits into from
Jun 26, 2019

Conversation

szymi-
Copy link
Contributor

@szymi- szymi- commented Jun 26, 2019

Fix CVE-2019-3498 - prevent url spoofing by not presenting url on 404 error page.

@coveralls
Copy link

coveralls commented Jun 26, 2019

Coverage Status

Coverage decreased (-0.005%) to 84.481% when pulling b9de101 on szymi-:error-page into b11ac04 on allegro:ng.

romcheg
romcheg previously approved these changes Jun 26, 2019
Copy link
Contributor

@romcheg romcheg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@requires_csrf_token
def page_not_found(request):
body = (
"<h1>Not Found</h1>"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: this could be localizable.

@szymi- szymi- merged commit 02525c7 into allegro:ng Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants