From 490129ef735c05f0457a9a69d5ed03068042d284 Mon Sep 17 00:00:00 2001 From: Olivier Mouren Date: Fri, 25 May 2018 11:11:30 +0200 Subject: [PATCH] Fix invalid signature when url has url-encoded characters --- src/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api.php b/src/Api.php index 77b4435..0c576c2 100644 --- a/src/Api.php +++ b/src/Api.php @@ -295,7 +295,7 @@ class Api if (isset($this->consumer_key)) { $toSign = $this->application_secret . '+' . $this->consumer_key . '+' . $method - . '+' . $url . '+' . $body . '+' . $now; + . '+' . (string) $request->getUri() . '+' . $body . '+' . $now; $signature = '$1$' . sha1($toSign); $headers['X-Ovh-Consumer'] = $this->consumer_key; $headers['X-Ovh-Signature'] = $signature;