Mercurial > hg > orthanc
diff OrthancServer/DicomProtocol/DicomServer.cpp @ 1243:3a3e7e3e244f
check
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Dec 2014 10:10:35 +0100 |
parents | a65ad39596cb |
children | 6e7e5ed91c2d |
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;