Skip to content

OvhRequestApi: Ensure to escape querystring arguments#18

Open
bonidier wants to merge 1 commit intodenouche:masterfrom
bonidier:ovhapilib/querystring-encode
Open

OvhRequestApi: Ensure to escape querystring arguments#18
bonidier wants to merge 1 commit intodenouche:masterfrom
bonidier:ovhapilib/querystring-encode

Conversation

@bonidier
Copy link
Collaborator

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 !

- [MAJOR] previously, only the first querystring argument was sent to OVH API,
          because ampersand was interpreted as shell background job, so other arguments ignored

misc:
- [MINOR] fix jsonsh-lib about AWK pattern warning
@bonidier
Copy link
Collaborator Author

hi @denouche
any news about this PR ?
thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments