Mercurial > hg > orthanc
comparison OrthancServer/Internals/CommandDispatcher.cpp @ 690:2e67366aab83
case-insensitive matching of Application Entity Titles
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Feb 2014 15:54:46 +0100 |
parents | 2d0a347e8cfc |
children | 0a2f8c707c78 |
comparison
equal
deleted
inserted
replaced
689:2d0a347e8cfc | 690:2e67366aab83 |
---|---|
383 } | 383 } |
384 | 384 |
385 callingIP = std::string(/*OFSTRING_GUARD*/(callingIP_C)); | 385 callingIP = std::string(/*OFSTRING_GUARD*/(callingIP_C)); |
386 callingTitle = std::string(/*OFSTRING_GUARD*/(callingTitle_C)); | 386 callingTitle = std::string(/*OFSTRING_GUARD*/(callingTitle_C)); |
387 std::string calledTitle(/*OFSTRING_GUARD*/(calledTitle_C)); | 387 std::string calledTitle(/*OFSTRING_GUARD*/(calledTitle_C)); |
388 Toolbox::ToUpperCase(callingIP); | 388 |
389 Toolbox::ToUpperCase(callingTitle); | 389 if (!server.IsMyAETitle(calledTitle)) |
390 Toolbox::ToUpperCase(calledTitle); | |
391 | |
392 if (server.HasCalledApplicationEntityTitleCheck() && | |
393 calledTitle != server.GetApplicationEntityTitle()) | |
394 { | 390 { |
395 T_ASC_RejectParameters rej = | 391 T_ASC_RejectParameters rej = |
396 { | 392 { |
397 ASC_RESULT_REJECTEDPERMANENT, | 393 ASC_RESULT_REJECTEDPERMANENT, |
398 ASC_SOURCE_SERVICEUSER, | 394 ASC_SOURCE_SERVICEUSER, |