From ec497a784c0b6e43f45be4f5ca3b64970e045b05 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 2 Jun 2020 17:11:00 +0300 Subject: additional fix for #2412 --- src/mir_app/src/srmm_base.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mir_app') 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" "); -- cgit v1.2.3