changeset 4164:b3c5418109a9

underscores are now allowed in peers/modalities symbolic names
author Alain Mazy <alain@mazy.be>
date Mon, 24 Aug 2020 15:34:11 +0200
parents d0f9e29a751b
children e34c89e89aac
files NEWS OrthancServer/Sources/OrthancConfiguration.cpp
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
 ==========================
--- 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);
       }
     }