Changeset - r27471:686ff4e2e830
[Not reviewed]
master
0 1 0
Rubidium - 14 months ago 2023-04-28 16:25:35
rubidium@openttd.org
Codechange: replace strstr with more appropriate function
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -383,9 +383,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. */
0 comments (0 inline, 0 general)