Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #579 buildWithBaseURLPath return only last part of url #581

Merged
merged 1 commit into from
May 30, 2024

Conversation

joelpittet
Copy link

The array_pop() assumes the last part of the path is the only valid leading an invalid_response error:

"The response was received at https://example.com/sub-directory/acs instead of https://example.com/sub-directory/saml/acs"

@joelpittet
Copy link
Author

This should help fix #579

@RoSk0
Copy link

RoSk0 commented Sep 23, 2024

@joelpittet this change breaks the functionality when self::getBaseURLPath() == /

@joelpittet
Copy link
Author

@RoSk0 Are you certain it worked before? Or are you suggesting that my change didn’t account for another edge case? In what scenario would a URL be just /?

I think I’m following what you’re saying based on this test, but I’m still unclear on when / would be used as a URL. Could you provide more context on that scenario?
https://3v4l.org/p86qT

@RoSk0
Copy link

RoSk0 commented Sep 25, 2024 via email

@pitbulk
Copy link
Contributor

pitbulk commented Sep 29, 2024

@RoSk0 I think I covered here the case where getBaseURLPath() == /

Can you provide more info on the issue you are experiencing?

Please share the URL, the relevant values on $_SERVER, the expected and what you are getting.

is maybe a config problem on the server configuration?

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.

3 participants