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 more cases of pages redirecting to themselves #811

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WGH-
Copy link
Collaborator

@WGH- WGH- commented Mar 29, 2024

This was "fixed" in b4ca6a7 (#763), but the fix turned out to be incomplete.

That fix only allowed redirects leading to the same URL as the original destination, and didn't take into account more complicated cases. Such as, for example:

This was "fixed" in b4ca6a7 (gocolly#763), but the fix turned out to be incomplete.

That fix only allowed redirects leading to the same URL as the original
destination, and didn't take into account more complicated cases. Such
as, for example:

 * www.example.com
 * example.com
 * (set cookie)
 * example.com
@WGH- WGH- marked this pull request as ready for review March 29, 2024 12:29
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.

None yet

1 participant