mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-02 09:58:24 +01:00
Explicitly set URL parameter separator for external URLs
Summary: PHP has this crazy [[ http://php.net/arg_separator.output | arg_separator.output ]] INI setting which allows setting different string for URL parameters separator instead of `&` (e.g. in `?a=1&b=2`). Don't use it for external URLs. Test Plan: Log in through OAuth. Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2284
This commit is contained in:
parent
9fd3958567
commit
d9ce80aa17
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ final class PhabricatorOAuthLoginController
|
|||
'code' => $code,
|
||||
) + $provider->getExtraTokenParameters();
|
||||
|
||||
$post_data = http_build_query($query_data);
|
||||
$post_data = http_build_query($query_data, '', '&');
|
||||
$post_length = strlen($post_data);
|
||||
|
||||
$stream_context = stream_context_create(
|
||||
|
|
Loading…
Add table
Reference in a new issue