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

fix: Handle redirect URL containing a ':' #1008

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Dec 10, 2024

Replace parse_url as it does not support path containing a :.

@artonge artonge self-assigned this Dec 10, 2024
@artonge artonge requested a review from julien-nc December 10, 2024 16:58
@artonge artonge added bug Something isn't working php Pull requests that update Php code 3. to review labels Dec 10, 2024
@julien-nc
Copy link
Member

Can it happen with another character than ":"?

@artonge
Copy link
Contributor Author

artonge commented Dec 10, 2024

Can it happen with another character than ":"?

Probably yes. But we don't have such reports for now.

Thinking about it, I don't think that my solution works, as in case of http://... The initial : will be replaced.

@artonge artonge force-pushed the artonge/fix/path_containing_colon branch from 7cc1a2e to 270a2ba Compare December 11, 2024 09:03
@artonge
Copy link
Contributor Author

artonge commented Dec 11, 2024

Updated to be more generic. This will remove the protocol and the domain name.

@artonge artonge force-pushed the artonge/fix/path_containing_colon branch from 270a2ba to 6296354 Compare December 11, 2024 09:04
@julien-nc
Copy link
Member

Can you check it does not break the login flow with the desktop client? That was an issue which was fixed by #971

Copy link
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in real life. It does not break the desktop client login flow.

@artonge artonge merged commit 433a630 into main Dec 11, 2024
45 checks passed
@artonge artonge deleted the artonge/fix/path_containing_colon branch December 11, 2024 15:27
@julien-nc julien-nc mentioned this pull request Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants