diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-19 21:25:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-19 21:25:22 +0300 |
commit | 6d22fc4224361e31ae629da92ac8bbf7797f3204 (patch) | |
tree | b85ad6d6bc22576ecda7c2248de479232a365263 /src | |
parent | 4464ef501c562cf6eeda3b59b1dfcf21d9dfb5a9 (diff) | |
download | plus-6d22fc4224361e31ae629da92ac8bbf7797f3204.tar.gz plus-6d22fc4224361e31ae629da92ac8bbf7797f3204.tar.bz2 plus-6d22fc4224361e31ae629da92ac8bbf7797f3204.tar.xz plus-6d22fc4224361e31ae629da92ac8bbf7797f3204.zip |
Remove spaces in browser links.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/process.cpp | 6 |
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__ |