# HG changeset patch # User Sebastien Jodogne # Date 1680941649 -7200 # Node ID 1acd709c87721d2d91b3da63237d8a756e04129f # Parent f22c8fac764bc85e68b6e3637d07c056557e8c42 fix diff -r f22c8fac764b -r 1acd709c8772 OrthancServer/Sources/ServerToolbox.cpp --- 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); } }