Skip to content
Snippets Groups Projects
Commit aa60b1b9 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding exception handling in http redirect

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@20 44740490-163a-0410-bde0-09ae8108e29a
parent 948bcd01
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,10 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect { ...@@ -40,6 +40,10 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect {
$md = $this->metadata->getMetaData($remoteentityid, $metadataset); $md = $this->metadata->getMetaData($remoteentityid, $metadataset);
$idpTargetUrl = $md[$endpoint]; $idpTargetUrl = $md[$endpoint];
if (!isset($idpTargetUrl) or $idpTargetUrl == '') {
throw new Exception('Could not find endpoint [' .$endpoint . '] in metadata for [' . $remoteentityid . '] (looking in ' . $metadataset . ')');
}
$encodedRequest = urlencode( base64_encode( gzdeflate( $request ) )); $encodedRequest = urlencode( base64_encode( gzdeflate( $request ) ));
......
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