Closed weppos closed 9 years ago
One more question. What is the token format? Is the token always expected to be composed only by digits? Or are there any other allowed characters?
We're looking into this, we'll sanitize this for you. Tokens are only digits.
@weppos I just released a new version, can you test it? thanks.
Wow, that was fast! I'll upgrade our app tomorrow morning and I'll give you a feedback.
Related to this, action_message
gets messed up with the gem
@jorilallo what are you seeing in action_message? Can you post a stack trace.
Daniel: it is displayed escaped in the delivered text message
@danpal errr, I mean form encoded
Closing. this was already fixed.
We're using the client in a Rails project and from time to time the following error is raised.
The origin of the issue is that the library takes the
token
parameter and uses it immediately without any further sanitization.You can reproduce the issue with the following example
We can indeed validate the user input, but I assume the library should not trust a parameter, especially if this parameter is used to generate an URL path like in this case.
You may want to sanitize or validate every input that is part of an URL.