Skip to content

fix: decode percent-encoded Windows drive letters in file URIs#2212

Open
JD114514-CPU wants to merge 1 commit into
microsoft:mainfrom
JD114514-CPU:fix-encoded-windows-file-uri
Open

fix: decode percent-encoded Windows drive letters in file URIs#2212
JD114514-CPU wants to merge 1 commit into
microsoft:mainfrom
JD114514-CPU:fix-encoded-windows-file-uri

Conversation

@JD114514-CPU

Copy link
Copy Markdown

Summary

  • decode percent-encoded Windows drive letters before converting file:// URIs to local paths
  • add a regression test for file:///E%3A/... style URIs on Windows

Fixes #2208.

Testing

  • verified on a Windows host that file_uri_to_path() now resolves file:///E%3A/... to a readable local path
  • confirmed the resolved file can be opened successfully after the fix

@JD114514-CPU

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

1 similar comment
@JD114514-CPU

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

Percent-encoded Windows drive colon in file URI produces a duplicated drive path

1 participant