From 6d22fc4224361e31ae629da92ac8bbf7797f3204 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 19 Feb 2013 21:25:22 +0300 Subject: Remove spaces in browser links. --- src/utils/process.cpp | 6 +++--- 1 file 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 bool openBrowser(std::string url) { - SDL_ANDROID_OpenBrowser(url.c_str()); + SDL_ANDROID_OpenBrowser(replaceAll(url, " ", "").c_str()); return true; } #elif defined __APPLE__ -- cgit v1.2.3-70-g09d2