Skip to content

Fix invalid signature when url has url-encoded characters#77

Open
omouren wants to merge 1 commit into
ovh:masterfrom
yuzu-co:master
Open

Fix invalid signature when url has url-encoded characters#77
omouren wants to merge 1 commit into
ovh:masterfrom
yuzu-co:master

Conversation

@omouren
Copy link
Copy Markdown

@omouren omouren commented May 25, 2018

No description provided.

@VincentCasse
Copy link
Copy Markdown
Member

Hi @omouren,

Thanks a lot for your pull requests.
Can you sign your request in order to follow the contributing rules?

Can you had two unit tests? One with url-encoded characters and another without ?

Thanks again for your PR,
Vincent

@VincentCasse
Copy link
Copy Markdown
Member

Hi @omouren,

Can you sign your PR please?
Without it, I can't merged it because it doesn't respect our contributing rules.

Comment thread src/Api.php
if (isset($this->consumer_key)) {
$toSign = $this->application_secret . '+' . $this->consumer_key . '+' . $method
. '+' . $url . '+' . $body . '+' . $now;
. '+' . (string) $request->getUri() . '+' . $body . '+' . $now;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs to have the unit tests to verify this change.

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.

3 participants