Skip to content

Commit

Permalink
Merge commit '2a10da8a6273767c3e5afe14fb4122575b6f6391' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
maksis committed Dec 5, 2020
2 parents 811fc55 + 2a10da8 commit fe39bbd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion airdcpp-webapi/api/TransferApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <airdcpp/Download.h>
#include <airdcpp/Upload.h>

#include <airdcpp/AirUtil.h>
#include <airdcpp/DownloadManager.h>
#include <airdcpp/ConnectionManager.h>
#include <airdcpp/QueueManager.h>
Expand Down
1 change: 0 additions & 1 deletion airdcpp-webapi/api/common/MessageUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <web-server/Session.h>

#include <airdcpp/ActionHook.h>
#include <airdcpp/AirUtil.h>
#include <airdcpp/Magnet.h>
#include <airdcpp/MessageCache.h>
#include <airdcpp/ShareManager.h>
Expand Down
2 changes: 2 additions & 0 deletions airdcpp-webapi/web-server/ApiSettingItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef DCPLUSPLUS_DCPP_APISETTINGITEM_H
#define DCPLUSPLUS_DCPP_APISETTINGITEM_H

#include "stdinc.h"

#include <airdcpp/GetSet.h>
#include <airdcpp/SettingItem.h>
#include <airdcpp/ResourceManager.h>
Expand Down
10 changes: 10 additions & 0 deletions airdcpp-webapi/web-server/ExtensionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions airdcpp-webapi/web-server/NpmRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <airdcpp/ResourceManager.h>
#include <airdcpp/ScopedFunctor.h>
#include <airdcpp/Thread.h>
#include <airdcpp/Util.h>


namespace webserver {
Expand Down

0 comments on commit fe39bbd

Please sign in to comment.