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

Allow file uris to include ? or # in filename #5043

Merged
merged 1 commit into from
Jan 31, 2023
Merged

Conversation

cjcolvar
Copy link
Member

In case file name includes ? or # use full uri omitting components before path instead of using only path which would miss query or fragment components

This was found in production where Report from the Statehouse WTTV (#720-20-1977_5-1.mp4Edited).mp4 became truncated because of the portion to the right of the # being interpreted as the fragment of the uri and not part of the path. So uri.path was Report from the Statehouse WTTV (.

In case file name includes ? or # use full uri omitting components before path
instead of using only path which would miss query or fragment components
Copy link
Contributor

@masaball masaball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@cjcolvar cjcolvar merged commit b45f403 into develop Jan 31, 2023
@cjcolvar cjcolvar deleted the full_location branch January 31, 2023 17:03
@joncameron joncameron mentioned this pull request Feb 3, 2023
1 task
@joncameron joncameron mentioned this pull request Feb 13, 2023
25 tasks
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