Skip to content

Commit 725a763

Browse files
author
drighetto
committed
Add method to validate XSD or DTD usage - Fix typo - #1
1 parent 78f7470 commit 725a763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/righettod/SecurityUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ public static byte[] computeHashNoProneToAbuseOnParts(List<String> parts) throws
573573
/**
574574
* Ensure that an XML file only uses DTD/XSD references (called System Identifier) present in the allowed list provided.<br>
575575
* The code is based on the validation implemented into the OpenJDK 21, by the class <b><a href="https://github.com/openjdk/jdk/blob/jdk-21%2B35/src/java.prefs/share/classes/java/util/prefs/XmlSupport.java">java.util.prefs.XmlSupport</a></b>, in the method <b><a href="https://github.com/openjdk/jdk/blob/jdk-21%2B35/src/java.prefs/share/classes/java/util/prefs/XmlSupport.java#L240">loadPrefsDoc()</a></b>.<br>
576-
* The method also ensure that not Public Identifier is used to prevent potential bypasses of the validations.
576+
* The method also ensure that no Public Identifier is used to prevent potential bypasses of the validations.
577577
*
578578
* @param xmlFilePath Filename of the XML file to check.
579579
* @param allowedSystemIdentifiers List of URL allowed for System Identifier specified for any XSD/DTD references.

0 commit comments

Comments
 (0)