diff options
author | tailor <cygnus@janrain.com> | 2006-02-08 17:38:01 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-02-08 17:38:01 +0000 |
commit | f9d59d386f0bd1fc2217c3b0ef26bbed3fcc633f (patch) | |
tree | fe2bb04c6a7a3b946cd7988f2be787a7b19186ef /Auth | |
parent | 0cfa1e48e8ed05fd22ae8099bb7bebbd4822d33f (diff) | |
download | php-openid-f9d59d386f0bd1fc2217c3b0ef26bbed3fcc633f.zip php-openid-f9d59d386f0bd1fc2217c3b0ef26bbed3fcc633f.tar.gz php-openid-f9d59d386f0bd1fc2217c3b0ef26bbed3fcc633f.tar.bz2 |
[project @ Fixed hostname for fsockopen when SSL is used in plain fetcher POST]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/Consumer/Fetchers.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Auth/OpenID/Consumer/Fetchers.php b/Auth/OpenID/Consumer/Fetchers.php index 63cdf01..ba1a4e8 100644 --- a/Auth/OpenID/Consumer/Fetchers.php +++ b/Auth/OpenID/Consumer/Fetchers.php @@ -168,6 +168,10 @@ class Auth_OpenID_PlainHTTPFetcher extends Auth_OpenID_HTTPFetcher { } } + if ($parts['scheme'] == 'https') { + $parts['host'] = sprintf("ssl://%s", $parts['host']); + } + // Connect to the remote server. $sock = fsockopen($parts['host'], $parts['port']); stream_set_timeout($sock, $_Auth_OpenID_socket_timeout); |