# HG changeset patch # User Alain Mazy # Date 1635159687 -7200 # Node ID ca604fa6714a6d07b907da08b3e1c45deafbe576 # Parent 56f3fa1b474be6b8c79c7a1b30426c52fedabdb7 Take the configuration "RestrictTransferSyntaxes" into account not only for Decoding but also for Transcoding diff -r 56f3fa1b474b -r ca604fa6714a NEWS --- a/NEWS Tue Jul 06 12:06:16 2021 +0200 +++ b/NEWS Mon Oct 25 13:01:27 2021 +0200 @@ -1,6 +1,8 @@ Pending changes in the mainline =============================== +* Take the configuration "RestrictTransferSyntaxes" into account not + only for Decoding but also for Transcoding. Version 1.4 (2021-07-06) ======================== diff -r 56f3fa1b474b -r ca604fa6714a Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Tue Jul 06 12:06:16 2021 +0200 +++ b/Plugin/Plugin.cpp Mon Oct 25 13:01:27 2021 +0200 @@ -270,6 +270,11 @@ { try { + if (!IsTransferSyntaxEnabled(buffer, size)) + { + return OrthancPluginErrorCode_Plugin; + } + std::unique_ptr locker; if (hasThrottling_)