Skip to content

Commit 09aaa93

Browse files
committed
Relax Destination check.
1 parent 5d1672f commit 09aaa93

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

onelogin-saml-sso/php/lib/Saml2/Response.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ public function isValid($requestId = null)
185185
// Check destination
186186
if ($this->document->documentElement->hasAttribute('Destination')) {
187187
$destination = trim($this->document->documentElement->getAttribute('Destination'));
188-
if (empty($destination)) {
189-
throw new Exception("The response has an empty Destination value");
190-
} else {
188+
if (!empty($destination)) {
191189
if (strpos($destination, $currentURL) !== 0) {
192190
$currentURLNoRouted = OneLogin_Saml2_Utils::getSelfURLNoQuery();
193191

0 commit comments

Comments
 (0)