Fix license compliance and fix things up, add reverse proxy, fix some security flaws with HttpUtils

This commit is contained in:
2026-08-31 21:49:56 -05:00
parent 3bce736834
commit 1223bf35c2
+2 -2
View File
@@ -705,7 +705,7 @@ void ShellFileOrUrl(std::string fileOrUrl) {
auto result = ShellExecuteW(NULL, L"open", (LPCWSTR)wname.c_str(), NULL, auto result = ShellExecuteW(NULL, L"open", (LPCWSTR)wname.c_str(), NULL,
NULL, SW_SHOWNORMAL); NULL, SW_SHOWNORMAL);
if ((INT_PTR)result <= 32) { if ((INT_PTR)result <= 32) {
switch ((int)result) { switch ((INT_PTR)result) {
case 0: case 0:
throw std::runtime_error( throw std::runtime_error(
"The operating system is out of memory or resources."); "The operating system is out of memory or resources.");
@@ -745,7 +745,7 @@ void ShellFileOrUrl(std::string fileOrUrl) {
"(SE_ERR_DLLNOTFOUND)."); "(SE_ERR_DLLNOTFOUND).");
default: default:
throw std::runtime_error("Unknown error: " + throw std::runtime_error("Unknown error: " +
std::to_string((int)result)); std::to_string((intptr_t)result));
} }
} }