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

Bindings_SAML20_HTTPPost: Handle $relayState === NULL.

Fix a warning from the post template caused by attempting to include
a RelayState parameter with the value NULL.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1553 44740490-163a-0410-bde0-09ae8108e29a
parent 0a3308fe
No related branches found
No related tags found
No related merge requests found
...@@ -192,10 +192,12 @@ class SimpleSAML_Bindings_SAML20_HTTPPost { ...@@ -192,10 +192,12 @@ class SimpleSAML_Bindings_SAML20_HTTPPost {
} else { } else {
SimpleSAML_Utilities::postRedirect($destination, array( $data = array('SAMLResponse' => base64_encode($response));
'RelayState' => $relayState, if ($relayState !== NULL) {
'SAMLResponse' => base64_encode($response), $data['RelayState'] = $relayState;
)); }
SimpleSAML_Utilities::postRedirect($destination, $data);
} }
......
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