Skip to content

Fix documentation URL blocking for substring domains #5503

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

Merged
merged 3 commits into from
Nov 20, 2022

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 20, 2022

#5502 was causing false positives due to the simplified ends_with() usage. This PR fixes it by checking against .{domain} instead, but avoids unnecessary allocations by performing the original check first.

@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-backend ⚙️ labels Nov 20, 2022
@Turbo87 Turbo87 merged commit 05bb07d into rust-lang:master Nov 20, 2022
@Turbo87 Turbo87 deleted the domain-block branch November 20, 2022 19:24
@jendrikw
Copy link
Contributor

Good catch! Will the link of the underscore crate be removed retroactively?

@Turbo87
Copy link
Member Author

Turbo87 commented Nov 21, 2022

yeah, that should be fixed once we deploy these changes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants