Changed IdentityProvider to enforce & as query param separator and ignore ini setting

1.0
Shaun Hare 2014-01-16 11:58:33 +00:00
parent dda8398ad3
commit b1714b4a0a
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ abstract class IdentityProvider
'approval_prompt' => 'auto'
);
return $this->urlAuthorize().'?'.http_build_query($params);
return $this->urlAuthorize().'?'.http_build_query($params,'','&',PHP_QUERY_RFC1738);
}
public function authorize($options = array())
@ -103,7 +103,7 @@ abstract class IdentityProvider
try {
switch ($this->method) {
case 'get':
$client = new GuzzleClient($this->urlAccessToken() . '?' . http_build_query($requestParams));
$client = new GuzzleClient($this->urlAccessToken() . '?' . http_build_query($requestParams,'','&',PHP_QUERY_RFC1738));
$request = $client->send();
$response = $request->getBody();
break;