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

MBS-13761: Reject Twitter id redirects instead of breaking them #3380

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

Conversation

reosarevok
Copy link
Member

Fix MBS-13761

Problem

We are "cleaning up" links such as https://twitter.com/i/user/19373710 to https://twitter.com/i and then accepting them as a "username" but in reality these are redirects to a normal Twitter/X link.

Solution

I blocked these redirects like we do for Spotify ones, where we request the editor to follow the link and provide the final one instead - the same error string is reused.

Testing

Manually, plus I added a test case to URLCleanup.

We were "cleaning these up" to /i and then accepting them as a username
but in reality these are redirects that should be blocked like we do for
Spotify ones, where we request the editor to follow the link and provide
the final one instead.
@reosarevok reosarevok added Bug Bugs that should be checked/fixed soonish URL handling labels Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs that should be checked/fixed soonish URL handling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant