django-rql icon indicating copy to clipboard operation
django-rql copied to clipboard

Encoding white space in queryParameters

Open miscavel opened this issue 1 year ago • 0 comments

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

miscavel avatar Feb 01 '24 10:02 miscavel