Fix bug 50979

This commit is contained in:
Oleg.Korshul
2021-09-09 16:05:28 +03:00
parent b3b68e7c58
commit 1c84b20856

View File

@ -4692,6 +4692,7 @@ window.AscDesktopEditor.InitJSContext();", curFrame->GetURL(), 0);
std::wstring sPath = message->GetArgumentList()->GetString(2).ToWString();
g_pLocalResolver->AddFile(sPath);
NSStringUtils::string_replace(sPath, L"\\", L"\\\\");
NSStringUtils::string_replace(sPath, L"\"", L"\\\"");
sParamCallback = L"\"" + sPath + L"\"";
}
else
@ -4704,6 +4705,7 @@ window.AscDesktopEditor.InitJSContext();", curFrame->GetURL(), 0);
std::wstring sPath = message->GetArgumentList()->GetString(nIndex).ToWString();
g_pLocalResolver->AddFile(sPath);
NSStringUtils::string_replace(sPath, L"\\", L"\\\\");
NSStringUtils::string_replace(sPath, L"\"", L"\\\"");
sParamCallback += (L"\"" + sPath + L"\"");
if (nIndex < (nCount - 1))