mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-13 06:12:49 -06:00
Core: Posix LaunchWebBrowser fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@6485 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4be908d4ea
commit
b496b51468
1 changed files with 3 additions and 2 deletions
|
|
@ -441,9 +441,10 @@ void LaunchWebBrowser(const String& url)
|
|||
};
|
||||
for(int i = 0; i < __countof(browser); i++)
|
||||
if(system("which " + String(browser[i])) == 0) {
|
||||
String u = url;
|
||||
u.Replace("'", "'\\''");
|
||||
IGNORE_RESULT(
|
||||
url.Replace("'", "'\\''");
|
||||
system(String(browser[i]) + " '" + url + "' &")
|
||||
system(String(browser[i]) + " '" + u + "' &")
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue