diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-09 20:17:35 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-09 20:17:35 +0300 |
commit | e688d75e8db7616d7e6d6fb3ed3c892e4fbe8a97 (patch) | |
tree | 7512eb2a89343b9bc7cd2bb1a03effd98742fdf6 | |
parent | c34bfae80508daf3604b88acbcf5a9f7589d67a9 (diff) |
fixes #4114 (Jabber: incorrect cyrillic/chinese/whatever file names in HTTP Upload)
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index 7b0211e70e..547257a570 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -154,6 +154,7 @@ void CJabberProto::FileProcessHttpDownload(MCONTACT hContact, const char *jid, c const char *b = strrchr(pszUrl, '/') + 1;
while (*b != 0 && *b != '#' && *b != '?')
szName.AppendChar(*b++);
+ mir_urlDecode(szName.GetBuffer());
auto *pszName = szName.c_str();
MHttpRequest req(REQUEST_HEAD);
|