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

saml: Handle empty RelayState the same as missing RelayState.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2763 44740490-163a-0410-bde0-09ae8108e29a
parent c848041a
No related branches found
No related tags found
No related merge requests found
......@@ -490,7 +490,7 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source {
$state['Attributes'] = $authProcState['Attributes'];
if (isset($state['saml:sp:isUnsoliced']) && (bool)$state['saml:sp:isUnsoliced']) {
if (isset($state['saml:sp:RelayState'])) {
if (!empty($state['saml:sp:RelayState'])) {
$redirectTo = $state['saml:sp:RelayState'];
} else {
$redirectTo = $source->getMetadata()->getString('RelayState', '/');
......
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