Mercurial > hg > orthanc
changeset 6052:78f4c1da54d3 attach-custom-data
merge
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 20 Mar 2025 18:24:24 +0100 (8 weeks ago) |
parents | 55f171e6ea4a (current diff) e83414b2b98d (diff) |
children | 3f560fa6db5b |
files | |
diffstat | 4 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Thu Mar 20 18:24:04 2025 +0100 +++ b/NEWS Thu Mar 20 18:24:24 2025 +0100 @@ -38,10 +38,12 @@ https://discourse.orthanc-server.org/t/lastupdate-coherency/5524 * Recovered compatibility with Windows XP that was broken because of DCMTK 3.6.9 * Enabled support of the 1.2.840.10008.1.2.1.99 transfer syntax - (Deflated Explicit VR Little Endian) in static builds + (Deflated Explicit VR Little Endian) in static builds + fix length of saved files. + https://discourse.orthanc-server.org/t/transcoding-to-deflated-transfer-syntax-fails/5489 * Housekeeper plugin: - When encountering an error, the housekeeper now skips the resource and continues processing. - +* Orthanc Explorer: + - Allow '-' and '_' in labels. Version 1.12.6 (2025-01-22)
--- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp Thu Mar 20 18:24:04 2025 +0100 +++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp Thu Mar 20 18:24:24 2025 +0100 @@ -1603,7 +1603,7 @@ // buffer if its size was overestimated by (*) ob.flush(); - size_t effectiveSize = static_cast<size_t>(ob.tell()); + size_t effectiveSize = static_cast<size_t>(ob.filled()); if (effectiveSize < buffer.size()) { buffer.resize(effectiveSize);
--- a/OrthancServer/OrthancExplorer/explorer.js Thu Mar 20 18:24:04 2025 +0100 +++ b/OrthancServer/OrthancExplorer/explorer.js Thu Mar 20 18:24:24 2025 +0100 @@ -71,6 +71,11 @@ return s.match(/^[0-9a-zA-Z]+$/); } +function IsValidLabelName(s) +{ + return s.match(/^[0-9a-zA-Z\-_]+$/); +} + function DeepCopy(obj) { @@ -780,7 +785,7 @@ click: function () { var label = $.mobile.sdLastInput; if (label.length > 0) { - if (IsAlphanumeric(label)) { + if (IsValidLabelName(label)) { $.ajax({ url: '../' + resourceLevel + '/' + resourceId + '/labels/' + label, dataType: 'json',
--- a/OrthancServer/Sources/OrthancInitialization.cpp Thu Mar 20 18:24:04 2025 +0100 +++ b/OrthancServer/Sources/OrthancInitialization.cpp Thu Mar 20 18:24:24 2025 +0100 @@ -59,6 +59,7 @@ # undef __FILE__ # define __FILE__ __ORTHANC_FILE__ # endif +# include <google/protobuf/stubs/common.h> # include <google/protobuf/any.h> #endif