Skip to content

fix(uri): unquote percent-encoded file URI paths in file_uri_to_path - #2249

Open
amir-rezaei wants to merge 1 commit into
microsoft:mainfrom
amir-rezaei:fix/file-uri-to-path-percent-encoded-drive
Open

fix(uri): unquote percent-encoded file URI paths in file_uri_to_path#2249
amir-rezaei wants to merge 1 commit into
microsoft:mainfrom
amir-rezaei:fix/file-uri-to-path-percent-encoded-drive

Conversation

@amir-rezaei

Copy link
Copy Markdown

Description

This PR resolves issue #2208 by unquoting percent-encoded path components in file_uri_to_path() (packages/markitdown/src/markitdown/_uri_utils.py) before passing them to url2pathname() and os.path.abspath().

Details

  • Fixes Windows file URIs with percent-encoded drive colons (e.g. C%3A) producing duplicated drive prefixes.

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