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

Protect against anchors with # #5369

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Feb 27, 2019

The anchor can contain # characters.
We only need to split from the first one.

Sentry issue https://sentry.io/organizations/read-the-docs/issues/910935991/?project=148442&referrer=alert_email&statsPeriod=14d

If we keep having this weird cases, we should consider using urlparser.
I'll try to write tests for this new feature soon.

The anchor can contain `#` characters.
We only need to split from the first one.
@stsewd stsewd requested review from ericholscher and a team February 27, 2019 23:09
@ericholscher ericholscher merged commit 5837247 into readthedocs:master Feb 27, 2019
@stsewd stsewd deleted the more-protection-in-anchors branch February 27, 2019 23:33
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.

2 participants