Skip to content
Snippets Groups Projects
Commit c6242d61 authored by zupert's avatar zupert
Browse files

Fix exception messages and undefined var name

parent 44ff2851
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class sspmod_oauth_Consumer {
parse_str($response_req, $responseParsed);
if(array_key_exists('error', $responseParsed))
throw new Exception('Error getting request token: ') . $responseParsed['error'];
throw new Exception('Error getting request token: ' . $responseParsed['error']);
$requestToken = $responseParsed['oauth_token'];
$requestTokenSecret = $responseParsed['oauth_token_secret'];
......@@ -114,7 +114,7 @@ class sspmod_oauth_Consumer {
parse_str($response_acc, $accessResponseParsed);
if(array_key_exists('error', $accessResponseParsed))
throw new Exception('Error getting request token: ') . $accessResponseParsed['error'];
throw new Exception('Error getting request token: ' . $accessResponseParsed['error']);
$accessToken = $accessResponseParsed['oauth_token'];
$accessTokenSecret = $accessResponseParsed['oauth_token_secret'];
......@@ -144,7 +144,7 @@ class sspmod_oauth_Consumer {
$context = stream_context_create($opts);
$response = file_get_contents($url, FALSE, $context);
if ($response === FALSE) {
throw new SimpleSAML_Error_Exception('Failed to push definition file to ' . $pushURL);
throw new SimpleSAML_Error_Exception('Failed to push definition file to ' . $url);
}
return $response;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment