Closed feltech closed 1 month ago
Do not percent-decode file:// URLs when retrieving from the library and passing to the host.
file://
Other functions that consume the returned URL will most likely expect the URL to be percent-encoded.
The culprit is theurl2pathname in normalize_file_url. We need to re-encode the URL after it's been reconstructed.
url2pathname
normalize_file_url
What
Do not percent-decode
file://
URLs when retrieving from the library and passing to the host.Why
Other functions that consume the returned URL will most likely expect the URL to be percent-encoded.
Notes
The culprit is the
url2pathname
innormalize_file_url
. We need to re-encode the URL after it's been reconstructed.