Skip to content
Snippets Groups Projects
Commit 845bd4f7 authored by Jacob Christiansen's avatar Jacob Christiansen
Browse files

Merge r3079 to 1.9 branch

git-svn-id: https://simplesamlphp.googlecode.com/svn/branches/simplesamlphp-1.9@3080 44740490-163a-0410-bde0-09ae8108e29a
parent 924f2ef3
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,15 @@ if (!array_key_exists('StateId', $_REQUEST)) { ...@@ -32,7 +32,15 @@ if (!array_key_exists('StateId', $_REQUEST)) {
$id = $_REQUEST['StateId']; $id = $_REQUEST['StateId'];
$state = SimpleSAML_Auth_State::loadState($id, 'consent:request'); $state = SimpleSAML_Auth_State::loadState($id, 'consent:request');
$spentityid = $state['core:SP'];
if (array_key_exists('core:SP', $state)) {
$spentityid = $state['core:SP'];
} else if (array_key_exists('saml:sp:State', $state)) {
$spentityid = $state['saml:sp:State']['core:SP'];
} else {
$spentityid = 'UNKNOWN';
}
// The user has pressed the yes-button // The user has pressed the yes-button
if (array_key_exists('yes', $_REQUEST)) { if (array_key_exists('yes', $_REQUEST)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment