Module: wine Branch: master Commit: a3068d7bd90b7dd224ba234059e9b018c187b328 URL: https://gitlab.winehq.org/wine/wine/-/commit/a3068d7bd90b7dd224ba234059e9b01...
Author: Jactry Zeng jzeng@codeweavers.com Date: Tue Aug 9 01:55:21 2022 -0500
mshtml: Call UrlUnescapeW() with URL_UNESCAPE_AS_UTF8 in is_gecko_path().
This fixes an issue when the path includes non-ASCII characters.
---
dlls/mshtml/nsembed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 21ddb3cb38f..4154fa711f7 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -1297,7 +1297,7 @@ BOOL is_gecko_path(const char *path) *ptr = '/'; }
- UrlUnescapeW(buf, NULL, NULL, URL_UNESCAPE_INPLACE); + UrlUnescapeW(buf, NULL, NULL, URL_UNESCAPE_INPLACE | URL_UNESCAPE_AS_UTF8); buf[gecko_path_len] = 0;
ret = !wcsicmp(buf, gecko_path);