You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/changes/changes.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The <action> type attribute can be add,update,fix,remove.
53
53
<actiontype="fix"dev="ggregory"due-to="Gary Gregory">Fix Apache RAT plugin console warnings.</action>
54
54
<actiontype="fix"dev="ggregory"due-to="Gary Gregory">Fix site XML to use version 2.0.0 XML schema.</action>
55
55
<actiontype="fix"dev="ggregory"due-to="Michael Hausegger">Removed unreachable threshold verification code in src/main/java/org/apache/commons/text/similarity #730.</action>
56
-
<actiontype="fix"dev="ggregory"due-to="김민재, Gary Gregory">Enable secure processing for the XML parser in XmlStringLookup #729.</action>
56
+
<actiontype="fix"dev="ggregory"due-to="김민재, Gary Gregory, Piotr Karwasz">Enable secure processing for the XML parser in XmlStringLookup in case the underlying JAXP implementation doesn't #729.</action>
57
57
<!-- ADD -->
58
58
<actiontype="add"dev="ggregory"due-to="Piotr P. Karwasz, Gary Gregory">Add experimental CycloneDX VEX file #683.</action>
59
59
<actiontype="add"dev="ggregory"due-to="LorgeN, Gary Gregory"issue="TEXT-235">Add Damerau-Levenshtein distance #687.</action>
* Secure processing is enabled by default and can be overridden with the system property {@code "XmlStringLookup.secure"} set to {@code false}. The secure
1722
-
* boolean String parsing follows the syntax defined by {@link Boolean#parseBoolean(String)}.
1721
+
* Secure processing is enabled by default and can be overridden with this constructor.
1723
1722
* </p>
1724
1723
* <p>
1725
1724
* Using a {@link StringLookup} from the {@link StringLookupFactory} fenced by the current directory ({@code Paths.get("")}):
* Secure processing is enabled by default and can be overridden with the system property {@code "XmlStringLookup.secure"} set to {@code false}. The secure
46
-
* boolean String parsing follows the syntax defined by {@link Boolean#parseBoolean(String)}.
44
+
* Secure processing is enabled by default and can be overridden with {@link StringLookupFactory#xmlStringLookup(Map, Path...)}.
47
45
* </p>
48
46
*
49
47
* @since 1.5
@@ -72,14 +70,13 @@ final class XmlStringLookup extends AbstractPathFencedLookup {
72
70
}
73
71
74
72
/**
75
-
* Defines the singleton for this class with secure processing enabled.
73
+
* Defines the singleton for this class with secure processing enabled by default.
74
+
* <p>
75
+
* Secure processing is enabled by default and can be overridden with {@link StringLookupFactory#xmlStringLookup(Map, Path...)}.
* Secure processing is enabled by default. The secure boolean String parsing follows the syntax defined by {@link Boolean#parseBoolean(String)}. The secure
117
-
* value in the key overrides instance settings given in the constructor.
113
+
* Secure processing is enabled by default and can be overridden with {@link StringLookupFactory#xmlStringLookup(Map, Path...)}.
118
114
* </p>
119
115
*
120
116
* @param key the key to be looked up, may be null.
@@ -130,22 +126,19 @@ public String lookup(final String key) {
130
126
if (keyLen != KEY_PARTS_LEN) {
131
127
throwIllegalArgumentExceptions.format("Bad XML key format '%s'; the expected format is 'DocumentPath:XPath'.", key);
0 commit comments