From 10100342b96f6217293e868bb7d252865aefcac4 Mon Sep 17 00:00:00 2001 From: Marcin Michalski Date: Sun, 22 Aug 2021 00:51:18 +0200 Subject: [PATCH] Fix opening "https://"-prefixed links on Windows (#1160) --- src/framework/platform/win32platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/platform/win32platform.cpp b/src/framework/platform/win32platform.cpp index 60c4ad9c..e6894a3e 100644 --- a/src/framework/platform/win32platform.cpp +++ b/src/framework/platform/win32platform.cpp @@ -148,7 +148,7 @@ ticks_t Platform::getFileModificationTime(std::string file) void Platform::openUrl(std::string url) { - if(url.find("http://") == std::string::npos) + if(url.find("http://") == std::string::npos && url.find("https://") == std::string::npos) url.insert(0, "http://"); ShellExecuteW(NULL, L"open", stdext::utf8_to_utf16(url).c_str(), NULL, NULL, SW_SHOWNORMAL); }