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

matthew_swift
17.29.2007 d97613453f1162868c1353b5d8f6cc0fbaea5107
opends/src/server/org/opends/server/tools/dsconfig/PropertyValuePrinter.java
@@ -156,7 +156,16 @@
    public <T> String visitUnknown(PropertyDefinition<T> d, T v, Void p) {
      // For all other property definition types the default encoding
      // will do.
      return d.encodeValue(v);
      String s = d.encodeValue(v);
      if (isScriptFriendly) {
        return s;
      } else if (s.trim().length() == 0 || s.contains(",")) {
        // Quote empty strings or strings containing commas
        // non-scripting mode.
        return "\"" + s + "\"";
      } else {
        return s;
      }
    }
  }