diff OrthancServer/Sources/OrthancConfiguration.cpp @ 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 0ddc5297a8ab
children 1c9c2c41c015
line wrap: on
line diff
--- 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);
       }
     }