-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Sanitize URL queries containing spaces correctly
Spaces are encoded as `+` (or `%20`) in URLs. Unfortunately I decoded this character as a simple `+` instead of a space. When I re-encoded the query value, the `+` was then encoded as `%2B`, which was wrong as it should have stayed as `+` (or `%20`). Now, I we re-encode queries, the character `+` is correctly decoded to a space, and then re-encoded to `+`. Bug introduced in: c41afda
- Loading branch information
1 parent
244278d
commit 49c324f
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters