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

use quote instead of quote_plus for RedirectResponse location header #1164

Merged
merged 3 commits into from Apr 14, 2021

Conversation

falkben
Copy link
Sponsor Contributor

@falkben falkben commented Apr 14, 2021

Closes #1162

use quote instead of quote_plus for RedirectResponse location header

adjust safe characters: rem. duplicate & symbol

add test for redirect quoting

Used django's redirect quote call as a reference: https://github.com/django/django/blob/23fa29f6a6659e0f600d216de6bcb79e7f6818c9/django/utils/encoding.py#L129

Copy link
Member

@JayH5 JayH5 left a comment

Choose a reason for hiding this comment

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

Thank you!

@JayH5 JayH5 merged commit f997938 into encode:master Apr 14, 2021
@falkben falkben deleted the falkben/redirect_response_quoting branch April 14, 2021 19:28
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.

RedirectResponse call to quote_plus replaces spaces & %20's with + character
2 participants