ovh-api-bash-client icon indicating copy to clipboard operation
ovh-api-bash-client copied to clipboard

OvhRequestApi: Ensure to escape querystring arguments

Open bonidier opened this issue 4 years ago • 1 comments

Hi @denouche

I'm always using ovh-api-bash-client, and I've freshly discovered a major bug in OvhRequestApi() When calling an URL with at least two arguments, only the first was forwarded to the main script, and so to OVH API

So, something like /action?foo=bar&baz=123 was forwarded as /action?foo=bar

The function updateSignData() allowed me to understand what's happened to the querystring

Here is a little fix for a useful improvement.

Regards !

bonidier avatar Dec 15 '20 14:12 bonidier

hi @denouche any news about this PR ? thanks !

bonidier avatar Jan 31 '22 18:01 bonidier