Skip to content

Conversation

@brianjmurrell
Copy link
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
Copy link
Member

stuarta commented Sep 9, 2021

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

@brianjmurrell
Copy link
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