# HG changeset patch # User Alain Mazy # Date 1598276051 -7200 # Node ID b3c5418109a9cfdc3072ed20de9cbaf42f11b282 # Parent d0f9e29a751b208be3b8a224974b35060ce61712 underscores are now allowed in peers/modalities symbolic names diff -r d0f9e29a751b -r b3c5418109a9 NEWS --- a/NEWS Mon Aug 24 07:51:38 2020 +0200 +++ b/NEWS Mon Aug 24 15:34:11 2020 +0200 @@ -1,6 +1,11 @@ Pending changes in the mainline =============================== +Maintenance +----------- + +* underscores are now allowed in peers/modalities symbolic names + Version 1.7.3 (2020-08-24) ========================== diff -r d0f9e29a751b -r b3c5418109a9 OrthancServer/Sources/OrthancConfiguration.cpp --- a/OrthancServer/Sources/OrthancConfiguration.cpp Mon Aug 24 07:51:38 2020 +0200 +++ b/OrthancServer/Sources/OrthancConfiguration.cpp Mon Aug 24 15:34:11 2020 +0200 @@ -181,10 +181,10 @@ for (size_t j = 0; j < s.size(); j++) { if (!isalnum(s[j]) && - s[j] != '-') + s[j] != '-' && s[j] != '_') { throw OrthancException(ErrorCode_BadFileFormat, - "Only alphanumeric and dash characters are allowed " + "Only alphanumeric, dash characters and underscores are allowed " "in the names of modalities/peers, but found: " + s); } }