We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d1672f commit 09aaa93Copy full SHA for 09aaa93
1 file changed
onelogin-saml-sso/php/lib/Saml2/Response.php
@@ -185,9 +185,7 @@ public function isValid($requestId = null)
185
// Check destination
186
if ($this->document->documentElement->hasAttribute('Destination')) {
187
$destination = trim($this->document->documentElement->getAttribute('Destination'));
188
- if (empty($destination)) {
189
- throw new Exception("The response has an empty Destination value");
190
- } else {
+ if (!empty($destination)) {
191
if (strpos($destination, $currentURL) !== 0) {
192
$currentURLNoRouted = OneLogin_Saml2_Utils::getSelfURLNoQuery();
193
0 commit comments