diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-20 08:57:55 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-20 08:57:55 +0000 |
commit | e6a4b82e6e40a2346fd32eb63b0f8a47bf670257 (patch) | |
tree | 5de568c32cd176bbaffe58a7809ae76bf421c6f3 /modules/openid | |
parent | d8bd6cf97c7afce67b0b99817ccc139c65bc1c63 (diff) | |
download | brdo-e6a4b82e6e40a2346fd32eb63b0f8a47bf670257.tar.gz brdo-e6a4b82e6e40a2346fd32eb63b0f8a47bf670257.tar.bz2 |
#196535 by sun, chx, dww: check whether Drupal can issue HTTP requests at all, so we know that this is the cause of problems, not the remote host not responding.
Diffstat (limited to 'modules/openid')
-rw-r--r-- | modules/openid/openid.module | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/openid/openid.module b/modules/openid/openid.module index cf58a9fbb..7e7114caa 100644 --- a/modules/openid/openid.module +++ b/modules/openid/openid.module @@ -290,6 +290,9 @@ function openid_discovery($claimed_id) { } } } + if (!$services) { + module_invoke('system', 'check_http_request'); + } return $services; } @@ -321,12 +324,14 @@ function openid_association($op_endpoint) { $assoc_headers = array('Content-Type' => 'application/x-www-form-urlencoded; charset=utf-8'); $assoc_result = drupal_http_request($op_endpoint, $assoc_headers, 'POST', $assoc_message); if (isset($assoc_result->error)) { + module_invoke('system', 'check_http_request'); return FALSE; } $assoc_response = _openid_parse_message($assoc_result->data); if (isset($assoc_response['mode']) && $assoc_response['mode'] == 'error') { - return FALSE; + module_invoke('system', 'check_http_request'); + return FALSE; } if ($assoc_response['session_type'] == 'DH-SHA1') { @@ -487,6 +492,8 @@ function openid_verify_assertion($op_endpoint, $response) { } } } - + if (!$valid) { + module_invoke('system', 'check_http_request'); + } return $valid; } |