stretchr / sdk-js

HTML5 and JavaScript SDK for Stretchr
http://docs.stretchr.com/sdks/javascript.md
3 stars 0 forks source link

Signing fails when '&' is in the body. #4

Closed tylerstillwater closed 11 years ago

tylerstillwater commented 11 years ago

If an ampersand is present in the body parameter of the URL, it is treated as a separator for a parameter.

This is quite bad.

We need to URL encode the body in sdk-js before we do signing. We then need to verify the signature on the server and URL decode it after verification.