Merge branch 'master' into jgrpp
# Conflicts: # src/console.cpp # src/os/os2/os2.cpp # src/os/unix/font_unix.cpp # src/strgen/strgen.h # src/strgen/strgen_base.cpp # src/table/settings/gui_settings.ini
This commit is contained in:
@@ -595,9 +595,9 @@ void MakeNewgameSettingsLive()
|
||||
void OpenBrowser(const char *url)
|
||||
{
|
||||
/* Make sure we only accept urls that are sure to open a browser. */
|
||||
if (strstr(url, "http://") != url && strstr(url, "https://") != url) return;
|
||||
|
||||
OSOpenBrowser(url);
|
||||
if (StrStartsWith(url, "http://") || StrStartsWith(url, "https://")) {
|
||||
OSOpenBrowser(url);
|
||||
}
|
||||
}
|
||||
|
||||
/** Callback structure of statements to be executed after the NewGRF scan. */
|
||||
|
Reference in New Issue
Block a user