summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-02 17:11:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-02 17:11:00 +0300
commitec497a784c0b6e43f45be4f5ca3b64970e045b05 (patch)
treebdccb38b0d66288a102b2262026f9d8a00f9bd5b /src/mir_app
parenta1762b54e4d38684e2f64df7eb869eff133474f2 (diff)
additional fix for #2412
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/srmm_base.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 2faeba337a..33e06758d0 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -764,7 +764,9 @@ bool CSrmmBaseDialog::PasteFilesAsURL(HDROP hDrop)
wchar_t szFilename[MAX_PATH];
if (DragQueryFileW(hDrop, i, szFilename, _countof(szFilename))) {
CMStringW fileString(L"file:///");
- fileString.Append(_A2T(mir_urlEncode(T2Utf(szFilename))));
+ fileString.Append(szFilename);
+ fileString.Replace(L"%", L"%25");
+ fileString.Replace(L" ", L"%20");
if (i == 0)
fileString.Insert(0, L" ");
fileString.Append((i != fileCount - 1) ? L"\r\n" : L" ");