From 0d5de0d4cc64d83a4334e2b1ae27bcc97041710b Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Wed, 11 Jan 2017 22:17:49 +0200 Subject: [PATCH] Fix zip error when installing update from a private BitBucket repository. The code that updates the OAuth signature didn't account for the fact that the oauth_signature query parameter would end up in the wrong place. Instead of being sorted alphabetically with the rest of parameters, it must be the *last* one. --- Puc/v4/OAuthSignature.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Puc/v4/OAuthSignature.php b/Puc/v4/OAuthSignature.php index f9242c4..93b5191 100644 --- a/Puc/v4/OAuthSignature.php +++ b/Puc/v4/OAuthSignature.php @@ -45,6 +45,7 @@ if ( !class_exists('Puc_v4_OAuthSignature', false) ): 'oauth_version' => '1.0', ) ); + unset($parameters['oauth_signature']); //Parameters must be sorted alphabetically before signing. ksort($parameters);