From b3d102419b0ecb512ec46c8ca4a1843d0c00ab53 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 10 Sep 2021 21:42:35 +0200 Subject: [PATCH] sys: Fixed opening custom protocols in the web browser --- plugins/libimhex/source/helpers/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libimhex/source/helpers/utils.cpp b/plugins/libimhex/source/helpers/utils.cpp index d2107059f..ae072ea41 100644 --- a/plugins/libimhex/source/helpers/utils.cpp +++ b/plugins/libimhex/source/helpers/utils.cpp @@ -169,7 +169,7 @@ namespace hex { void openWebpage(std::string url) { - if (!url.starts_with("http://") && !url.starts_with("https://")) + if (url.find("://") == std::string::npos) url = "https://" + url; #if defined(OS_WINDOWS)