Skip to content
Snippets Groups Projects
Commit c610f4da authored by Olav Morken's avatar Olav Morken
Browse files

cas: HTTP proxy support.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2660 44740490-163a-0410-bde0-09ae8108e29a
parent b7953df9
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ class sspmod_cas_Auth_Source_CAS extends SimpleSAML_Auth_Source {
'ticket' => $ticket,
'service' => $service,
));
$result = file_get_contents($url);
$result = SimpleSAML_Utilities::fetch($url);
$res = preg_split("/\r?\n/",$result);
if (strcmp($res[0], "yes") == 0) {
......@@ -117,7 +117,7 @@ class sspmod_cas_Auth_Source_CAS extends SimpleSAML_Auth_Source {
'ticket' => $ticket,
'service' => $service,
));
$result = file_get_contents($url);
$result = SimpleSAML_Utilities::fetch($url);
$dom = DOMDocument::loadXML($result);
$xPath = new DOMXpath($dom);
......
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