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

Encoding white space in queryParameters #76

Open
miscavel opened this issue Feb 1, 2024 · 0 comments
Open

Encoding white space in queryParameters #76

miscavel opened this issue Feb 1, 2024 · 0 comments
Assignees

Comments

@miscavel
Copy link

miscavel commented Feb 1, 2024

Hello, have a question regarding whitespace encoding in filters.

So normally whitespace can be encoded with either + or %20, such as

name=first%20last or name=first+last

I notice that when using django-rql, + is decoded as an actual + symbol, such that name=namewith+ and name=namewith%2B are the same

Is this intended? While we can enforce it to use %20, by default https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams encodes whitespace as + so this might be an issue to non suspecting clients consuming the API

django-rql version used: 4.4.0

@maxipavlovic maxipavlovic self-assigned this Feb 9, 2024
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

No branches or pull requests

2 participants