Skip to content

Make bare file URLs actually file: URLs#131

Open
brianjmurrell wants to merge 2 commits into
MythTV:masterfrom
brianjmurrell:patch-1
Open

Make bare file URLs actually file: URLs#131
brianjmurrell wants to merge 2 commits into
MythTV:masterfrom
brianjmurrell:patch-1

Conversation

@brianjmurrell

Copy link
Copy Markdown
Contributor

QUrl will mangle the content of a string, in particular it will convert the first letter to lower case if the string contains a colon.

So properly form filenames as file URLs by prefixing them with file:

Tracked in https://code.mythtv.org/trac/ticket/13006

QUrl will mangle the content of a string, in particular it will convert the first letter to lower case if the string contains a colon.

So properly form filenames as file URLs by prefixing them with file:
When converting a string to a URL, only make it a file:// URL if it does not already have a scheme.
@stuarta

stuarta commented Sep 9, 2021

Copy link
Copy Markdown
Member

Is there a real world use case that this PR addresses?

@brianjmurrell

Copy link
Copy Markdown
Contributor Author

There most certainly would have been. I wouldn't have wasted time on figuring out the problem and cooking up a fix if there were not.

But I have not used MythTV in probably years now. Feel free to close and discard this if you wish.

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