You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2015/01/05 22:46:54 UTC

svn commit: r1649675 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java

Author: adrianc
Date: Mon Jan  5 21:46:54 2015
New Revision: 1649675

URL: http://svn.apache.org/r1649675
Log:
Improvement: Enable XML validation for properties files.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java?rev=1649675&r1=1649674&r2=1649675&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java Mon Jan  5 21:46:54 2015
@@ -956,8 +956,7 @@ public class UtilProperties implements S
         }
         Document doc = null;
         try {
-            // set validation true when we have a DTD for the custom XML format
-            doc = UtilXml.readXmlDocument(in, false, "XML Properties file");
+            doc = UtilXml.readXmlDocument(in, true, "XML Properties file");
             in.close();
         } catch (Exception e) {
             Debug.logWarning(e, "XML Locale file for locale " + locale + " could not be loaded.", module);