mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

sin
22.31.2009 b7ab8a03dde69765027e36fcf9664469924c5389
opendj-sdk/opends/src/server/org/opends/server/schema/ObjectClassSyntax.java
@@ -1161,6 +1161,8 @@
    // Skip over any spaces at the beginning of the value.
    char c = '\u0000';
    int  length = lowerStr.length();
    boolean allowExceptions =
                  DirectoryServer.allowAttributeNameExceptions();
    while ((startPos < length) && ((c = lowerStr.charAt(startPos)) == ' '))
    {
      startPos++;
@@ -1200,7 +1202,8 @@
            lastWasPeriod = true;
          }
        }
        else if (! isDigit(c))
        else if (! (isDigit(c) ||
                allowExceptions && (isAlpha(c) || (c=='-') || (c=='_'))))
        {
          // Technically, this must be an illegal character.  However, it is
          // possible that someone just got sloppy and did not include a space