Skip to content

use quote instead of quote_plus for RedirectResponse location header#1164

Merged
JayH5 merged 3 commits intoKludex:masterfrom
falkben:falkben/redirect_response_quoting
Apr 14, 2021
Merged

use quote instead of quote_plus for RedirectResponse location header#1164
JayH5 merged 3 commits intoKludex:masterfrom
falkben:falkben/redirect_response_quoting

Conversation

@falkben
Copy link
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
Contributor

@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 Kludex: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