Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OvhRequestApi: Ensure to escape querystring arguments #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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