Skip to content

Commit 2667f5d

Browse files
committed
Fix URL-decoding to decode + signs
1 parent 5c1c080 commit 2667f5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OAuth2/ClientAssertionType/HttpBasic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public function getClientCredentials(RequestInterface $request, ResponseInterfac
120120
* client credentials are URL-encoded before being encoded in the HTTP Basic header, so we decode them here
121121
* @see http://tools.ietf.org/html/rfc6749#section-2.3.1
122122
*/
123-
'client_id' => rawurldecode($request->headers('PHP_AUTH_USER')),
124-
'client_secret' => rawurldecode($request->headers('PHP_AUTH_PW')),
123+
'client_id' => urldecode($request->headers('PHP_AUTH_USER')),
124+
'client_secret' => urldecode($request->headers('PHP_AUTH_PW')),
125125
);
126126
}
127127

0 commit comments

Comments
 (0)