mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 22:02:58 -06:00
Core: LaunchWebBrowser in POSIX fixed special characters in URL
git-svn-id: svn://ultimatepp.org/upp/trunk@6474 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
cd6968fa5c
commit
ebf8676bb0
1 changed files with 4 additions and 1 deletions
|
|
@ -442,7 +442,10 @@ void LaunchWebBrowser(const String& url)
|
|||
for(int i = 0; i < __countof(browser); i++)
|
||||
if(system("which " + String(browser[i])) == 0) {
|
||||
IGNORE_RESULT(
|
||||
system(String(browser[i]) + " " + url + " &")
|
||||
url.Replace("\\", "\\\\");
|
||||
url.Replace("\"", "\\\"");
|
||||
url.Replace("$", "\\$");
|
||||
system(String(browser[i]) + " \"" + url + "\" &")
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue