Addendum patch for Configuration fix. (Jason Lowe via asuresh)

(cherry picked from commit 4e847d63a3)
This commit is contained in:
Arun Suresh 2017-11-13 13:49:08 -08:00
parent 238a70c6c3
commit ed0658a579
1 changed files with 4 additions and 2 deletions

View File

@ -2852,7 +2852,8 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
// xi:include are treated as inline and retain current source
URL include = getResource(confInclude);
if (include != null) {
Resource classpathResource = new Resource(include, name);
Resource classpathResource = new Resource(include, name,
wrapper.isParserRestricted());
loadResource(properties, classpathResource, quiet);
} else {
URL url;
@ -2873,7 +2874,8 @@ public class Configuration implements Iterable<Map.Entry<String,String>>,
}
url = href.toURI().toURL();
}
Resource uriResource = new Resource(url, name);
Resource uriResource = new Resource(url, name,
wrapper.isParserRestricted());
loadResource(properties, uriResource, quiet);
}
break;