|
@@ -805,7 +805,17 @@ namespace Chromium {
|
|
|
CSimpleString runningVer = "";
|
|
|
m_pEntity->GetFunction()->GetRunningVersion(runningVer);
|
|
|
dstInstallUrl.append("?terminalVersion=").append(runningVer.GetData());
|
|
|
- dstInstallUrl = UrlEncoder::Encode(dstInstallUrl);
|
|
|
+#if defined(RVC_OS_LINUX)
|
|
|
+ auto replaceAll = [](std::string& str, const std::string& search, const std::string& replace) {
|
|
|
+ size_t pos = 0;
|
|
|
+ while ((pos = str.find(search, pos)) != std::string::npos) {
|
|
|
+ str.replace(pos, search.length(), replace);
|
|
|
+ pos += replace.length();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ replaceAll(dstInstallUrl, "&", "\\&");
|
|
|
+#endif // RVC_OS_WIN
|
|
|
+
|
|
|
auto strCmdLine = generateInstallCmd(dstInstallUrl);
|
|
|
auto openCefRet = openCef(strCmdLine, false);
|
|
|
if (Error_Succeed == openCefRet.first)
|