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

+ not decoded as expected #3

Open
kornelski opened this issue Feb 24, 2020 · 0 comments
Open

+ not decoded as expected #3

kornelski opened this issue Feb 24, 2020 · 0 comments

Comments

@kornelski
Copy link

Unlike other percent-encoded parts of the URL, query strings also support + as a space character.

qstring doesn't substitute + for space, which makes it incompatible with web browsers submitting text using GET forms.

mwootten added a commit to mwootten/petscan_rs that referenced this issue Aug 28, 2023
The backend decodes querystrings with the qstring crate. However, that
decodes both a plus sign and a URL-encoded plus sign to exactly the
same thing, erasing the distinction between plus signs and spaces
(see algesten/qstring#3). This patch instead uses the underlying url
crate, which handles plus signs correctly.

This fix should be combined with magnusmanske#138, which fixes the frontend piece;
however, merging just this one would correct the saving in the backend.
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

1 participant