Skip to content

Fix empty responseUrl bypassing SLO URL fallback#648

Open
Babuntoku wants to merge 1 commit into
SAML-Toolkits:4.x-devfrom
Babuntoku:fix/empty-responseurl-fallback
Open

Fix empty responseUrl bypassing SLO URL fallback#648
Babuntoku wants to merge 1 commit into
SAML-Toolkits:4.x-devfrom
Babuntoku:fix/empty-responseurl-fallback

Conversation

@Babuntoku
Copy link
Copy Markdown

isset('') returns true in PHP, so an empty responseUrl passes the fallbackcheck and getIdPSLOResponseUrl() returns ''.
This causes Utils::redirect('') to throw REDIRECT_INVALID_URL during broadcast SLO.
Replace isset() with !empty() so empty strings correctly fall through to getIdPSLOUrl().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant