Skip to content

Sanitize the extensions of URLs with query parameters correctly #3859

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

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

Conversation

martenlienen
Copy link

With this fix, the extension is taken from the path of the URL instead of the complete
URL. The previous implementation would erroneously search for an extension in the query
and params part of the URL. Additionally, a mistake is fixed where very long "extensions"
could have the returned path break the max_length.

Best,
Marten

With this fix, the extension is taken from the path of the URL instead of the complete
URL. The previous implementation would erroneously search for an extension in the query
and params part of the URL. Additionally, a mistake is fixed where very long "extensions"
could have the returned path break the max_length.
@ccl-core ccl-core self-assigned this May 11, 2022
@ccl-core ccl-core added the copybara-import Internal label for PR management label May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
copybara-import Internal label for PR management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants