Skip to content

Encoding white space in queryParameters #76

@miscavel

Description

@miscavel

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions