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

matthew_swift
17.29.2007 8f738fff31f88400e530fe4443afd3a09f7e3f62
opendj-sdk/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;
      }
    }
  }