Skip to content

Conversation

@layercak3
Copy link
Contributor

Opening paths that are detected as archives which contain '%[0-9A-Fa-f][0-9A-Fa-f]' will fail, because such sequence is treated as a percent-encoded value when the path gets unescaped causing the path to be mangled. Escape '%' to prevent this from happening.

Fixes: 2b280f4 ("stream: libarchive wrapper for reading compressed archives")

Opening paths that are detected as archives which contain
'%[0-9A-Fa-f][0-9A-Fa-f]' will fail, because such sequence is treated as
a percent-encoded value when the path gets unescaped causing the path to
be mangled. Escape '%' to prevent this from happening.

Fixes: 2b280f4 ("stream: libarchive wrapper for reading compressed archives")
@github-actions
Copy link

Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can confirm problem and fix.

@sfan5 sfan5 merged commit 7e94d69 into mpv-player:master Jul 26, 2025
24 checks passed
@layercak3 layercak3 deleted the libarchive-percent-path branch July 29, 2025 09:54
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