sharetodiaspora / sharetodiaspora.github.io

diaspora* Advanced Sharer - Share links and posts to your favorite diaspora* pod.
sharetodiaspora.github.io
GNU Affero General Public License v3.0
23 stars 12 forks source link

replace + signs before decoding #25

Open mxmehl opened 7 years ago

mxmehl commented 7 years ago

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 commented 7 years ago

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.