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

saml: The Destination attribute is not required on unsigned messages.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2694 44740490-163a-0410-bde0-09ae8108e29a
parent 56eb4ac8
No related branches found
No related tags found
No related merge requests found
......@@ -492,7 +492,7 @@ class sspmod_saml_Message {
/* Validate Response-element destination. */
$currentURL = SimpleSAML_Utilities::selfURLNoQuery();
$msgDestination = $response->getDestination();
if ($msgDestination !== $currentURL) {
if ($msgDestination !== NULL && $msgDestination !== $currentURL) {
throw new Exception('Destination in response doesn\'t match the current URL. Destination is "' .
$msgDestination . '", current URL is "' . $currentURL . '".');
}
......
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