mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: Fix LaunchWebBrowser on macOS to handle addresses with dolar sign. (#342)
This commit is contained in:
parent
55b1e136e5
commit
bfc8421d9c
1 changed files with 3 additions and 1 deletions
|
|
@ -654,7 +654,9 @@ void LaunchWebBrowser(const String& url)
|
|||
void LaunchWebBrowser(const String& url)
|
||||
{
|
||||
#ifdef PLATFORM_MACOS
|
||||
IGNORE_RESULT(system("open " + url));
|
||||
String u = url;
|
||||
u.Replace("$", "\\$");
|
||||
IGNORE_RESULT(system("open " + u));
|
||||
#else
|
||||
const char * browser[] = {
|
||||
"htmlview", "xdg-open", "x-www-browser", "firefox", "konqueror", "opera", "epiphany", "galeon", "netscape"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue