Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

replace + signs before decoding #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mxmehl
Copy link

@mxmehl mxmehl commented Apr 9, 2017

Sometimes URI components contain + signs as a indicator for spaces. The JavaScript function decodeURIComponent doesn't seem to replace them.

So this change will replace unencoded + signs before decoding it. Is there a edge case where this could cause unwanted behaviour?

@fdavidcl
Copy link
Contributor

Hey, thanks for your contribution 😄 . I still need to test it with some cases when I have some spare time, though, and make sure it doesn't break when the parameters are re-encoded later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants