Description
System and IINA version:
- macOS 14.4
- IINA 1.3.4
Expected behavior:
IINA correctly percent encodes URLs.
Actual behavior:
When running under macOS Sonoma IINA will perform percent encoding twice resulting in malformed URLs. @xfoxfu provided two examples:
Opening this URL in Firefox:
iina://weblink?url=https://example.com/%5Bfoo%20bar.mkv
IINA changes %5Bfoo%20bar.mkv
to be %5Bfoo%2520bar.mkv
:
13:54:42.969 [iina][d] Parsing URL iina://weblink?url=https://example.com/%5Bfoo%20bar.mkv
13:54:42.969 [player0][d] Open URL: https://example.com/%5Bfoo%2520bar.mkv
13:54:42.969 [player0][d] Opening https://example.com/%5Bfoo%2520bar.mkv in main window
Opening this URL in Firefox:
iina://weblink?url=https://example.com/%25foo%20bar.mkv
IINA changes %25foo%20bar.mkv
to be %25foo%2520bar.mkv
:
13:51:00.896 [iina][d] Parsing URL iina://weblink?url=https://example.com/%25foo%20bar.mkv
13:51:00.897 [player0][d] Open URL: https://example.com/%25foo%2520bar.mkv
13:51:00.897 [player0][d] Opening https://example.com/%25foo%2520bar.mkv in main window
This is a change from the behavior under macOS Ventura.
Steps to reproduce:
-
Enable logging in IINA
-
Open one of the URLs given above in Firefox
-
Look for the message shown above in IINA's log file
-
MPV does not have this problem.
This is an issue with IINA code. I have not checked if mpv
also has this problem.
How often does this happen?
Every time.