Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerToolbox.cpp @ 5250:1acd709c8772 db-protobuf
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 08 Apr 2023 10:14:09 +0200 |
parents | eb2684260c19 |
children | acaea72a3e91 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerToolbox.cpp Fri Apr 07 22:54:57 2023 +0200 +++ b/OrthancServer/Sources/ServerToolbox.cpp Sat Apr 08 10:14:09 2023 +0200 @@ -305,8 +305,7 @@ for (size_t i = 0; i < label.size(); i++) { - if (!(label[i] == '.' || - label[i] == '_' || + if (!(label[i] == '_' || label[i] == '-' || (label[i] >= 'a' && label[i] <= 'z') || (label[i] >= 'A' && label[i] <= 'Z') || @@ -326,7 +325,7 @@ { throw OrthancException(ErrorCode_ParameterOutOfRange, "A label must be a non-empty, alphanumeric string, " - "possibly with '.', '_', or '-' characters, " + "possibly with '_' or '-' characters, " "with maximum 64 characters, but got: " + label); } }