mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-03 12:54:22 +00:00
svg import: do not load dtd (from internet when xml is parsed)
This commit is contained in:
@@ -173,6 +173,7 @@ public class ShapeImporter {
|
||||
|
||||
try {
|
||||
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
|
||||
docFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
|
||||
DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
|
||||
Document doc = docBuilder.parse(new InputSource(new StringReader(svgXml)));
|
||||
Element rootElement = doc.getDocumentElement();
|
||||
|
||||
Reference in New Issue
Block a user