Mercurial > hg > orthanc
changeset 1243:3a3e7e3e244f
check
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Dec 2014 10:10:35 +0100 |
parents | 58e6a89c3ef4 |
children | a0e420c5f2b8 |
files | OrthancServer/DicomProtocol/DicomServer.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/DicomServer.cpp Fri Dec 05 17:37:27 2014 +0100 +++ b/OrthancServer/DicomProtocol/DicomServer.cpp Mon Dec 08 10:10:35 2014 +0100 @@ -285,9 +285,10 @@ for (size_t i = 0; i < aet.size(); i++) { - if (!isalnum(aet[i]) && - aet[i] != '-' && - aet[i] != '_') + if (!(aet[i] == '-' || + aet[i] == '_' || + isdigit(aet[i]) || + (aet[i] >= 'A' && aet[i] <= 'Z'))) { LOG(WARNING) << "For best interoperability, only upper case, alphanumeric characters should be present in AET: \"" << aet << "\""; break;