Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1242:58e6a89c3ef4 | 1243:3a3e7e3e244f |
---|---|
283 throw OrthancException("AET must be shorter than 16 characters"); | 283 throw OrthancException("AET must be shorter than 16 characters"); |
284 } | 284 } |
285 | 285 |
286 for (size_t i = 0; i < aet.size(); i++) | 286 for (size_t i = 0; i < aet.size(); i++) |
287 { | 287 { |
288 if (!isalnum(aet[i]) && | 288 if (!(aet[i] == '-' || |
289 aet[i] != '-' && | 289 aet[i] == '_' || |
290 aet[i] != '_') | 290 isdigit(aet[i]) || |
291 (aet[i] >= 'A' && aet[i] <= 'Z'))) | |
291 { | 292 { |
292 LOG(WARNING) << "For best interoperability, only upper case, alphanumeric characters should be present in AET: \"" << aet << "\""; | 293 LOG(WARNING) << "For best interoperability, only upper case, alphanumeric characters should be present in AET: \"" << aet << "\""; |
293 break; | 294 break; |
294 } | 295 } |
295 } | 296 } |