Mercurial > hg > orthanc
changeset 3341:8f44dadcdbc1
Fix issue #138 (POST to modalities/{name} accepts invalid characters)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Apr 2019 13:02:57 +0200 |
parents | ca65e3dcce72 |
children | 63f59ad9381a |
files | NEWS OrthancServer/OrthancConfiguration.cpp |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Thu Apr 04 16:03:29 2019 +0200 +++ b/NEWS Fri Apr 05 13:02:57 2019 +0200 @@ -2,6 +2,7 @@ =============================== * Size of the Orthanc static binaries are reduced by compressing ICU data +* Fix issue #138 (POST to modalities/{name} accepts invalid characters) Version 1.5.6 (2019-03-01)
--- a/OrthancServer/OrthancConfiguration.cpp Thu Apr 04 16:03:29 2019 +0200 +++ b/OrthancServer/OrthancConfiguration.cpp Fri Apr 05 13:02:57 2019 +0200 @@ -759,6 +759,8 @@ void OrthancConfiguration::UpdateModality(const std::string& symbolicName, const RemoteModalityParameters& modality) { + CheckAlphanumeric(symbolicName); + modalities_[symbolicName] = modality; SaveModalities(); } @@ -774,6 +776,8 @@ void OrthancConfiguration::UpdatePeer(const std::string& symbolicName, const WebServiceParameters& peer) { + CheckAlphanumeric(symbolicName); + peer.CheckClientCertificate(); peers_[symbolicName] = peer;