diff --git a/api/TransferApi.cpp b/api/TransferApi.cpp index 2ad8f2de..f5e4fc45 100644 --- a/api/TransferApi.cpp +++ b/api/TransferApi.cpp @@ -25,7 +25,6 @@ #include #include -#include #include #include #include diff --git a/api/common/MessageUtils.cpp b/api/common/MessageUtils.cpp index 0aaf0eb5..a40063d4 100644 --- a/api/common/MessageUtils.cpp +++ b/api/common/MessageUtils.cpp @@ -25,7 +25,6 @@ #include #include -#include #include #include #include diff --git a/web-server/ApiSettingItem.h b/web-server/ApiSettingItem.h index d4e0889f..a5648ceb 100644 --- a/web-server/ApiSettingItem.h +++ b/web-server/ApiSettingItem.h @@ -19,6 +19,8 @@ #ifndef DCPLUSPLUS_DCPP_APISETTINGITEM_H #define DCPLUSPLUS_DCPP_APISETTINGITEM_H +#include "stdinc.h" + #include #include #include diff --git a/web-server/ExtensionManager.cpp b/web-server/ExtensionManager.cpp index f6bd50b8..8c382495 100644 --- a/web-server/ExtensionManager.cpp +++ b/web-server/ExtensionManager.cpp @@ -462,6 +462,16 @@ namespace webserver { return; } + // Check blocked extensions + { + RLock l(cs); + auto i = blockedExtensions.find(extensionName); + if (i != blockedExtensions.end()) { + failInstallation(aInstallId, STRING(WEB_EXTENSION_INSTALL_BLOCKED), i->second); + return; + } + } + // Updating an existing extension? auto extension = getExtension(extensionName); if (extension) { diff --git a/web-server/NpmRepository.cpp b/web-server/NpmRepository.cpp index 6f4c4426..56a76973 100644 --- a/web-server/NpmRepository.cpp +++ b/web-server/NpmRepository.cpp @@ -26,6 +26,7 @@ #include #include #include +#include namespace webserver {