summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index 1efd850cc..bcc17a613 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -230,14 +230,14 @@ bool execFile(std::string pathName, std::string name,
#ifdef WIN32
bool openBrowser(std::string url)
{
- return (int)ShellExecute(nullptr, "open", url.c_str(), nullptr,
- nullptr, SW_SHOWNORMAL) > 32;
+ return (int)ShellExecute(nullptr, "open", replaceAll(url, " ", "").c_str(),
+ nullptr, nullptr, SW_SHOWNORMAL) > 32;
}
#elif defined ANDROID
#include <SDL_screenkeyboard.h>
bool openBrowser(std::string url)
{
- SDL_ANDROID_OpenBrowser(url.c_str());
+ SDL_ANDROID_OpenBrowser(replaceAll(url, " ", "").c_str());
return true;
}
#elif defined __APPLE__