Commit 07658be3 authored by Daniel Le Berre's avatar Daniel Le Berre

Fix potential security issue found by sonarqube.

parent 2211407d
......@@ -25,6 +25,7 @@ import;
import javax.xml.XMLConstants;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.validation.SchemaFactory;
......@@ -45,6 +46,7 @@ public class CspXmlParser {
// obtenir un parser
SAXParserFactory saxpf = SAXParserFactory.newInstance();
saxpf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
// associer un schema pour la validation
URL url = CspXmlParser.class.getResource("/instance_2_0.xsd");
// System.out.println(url);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment