Core: Fix LaunchWebBrowser on macOS to handle addresses with dolar sign. (#342)

This commit is contained in:
Zbigniew Rębacz 2026-01-09 11:42:09 +01:00 committed by GitHub
parent 55b1e136e5
commit bfc8421d9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"