Skip to content
Snippets Groups Projects
Commit 424c84c9 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Explain why the code is safe

parent fd2129da
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,7 @@ protected XWikiDocument loadFromXML(File file) throws MojoExecutionException ...@@ -125,6 +125,7 @@ protected XWikiDocument loadFromXML(File file) throws MojoExecutionException
// get XML tree // get XML tree
FileReader fr = new FileReader(file); FileReader fr = new FileReader(file);
// This is not subject to XXE attacks since we control the input files and it's used only at build time.
SAXReader reader = new SAXReader(); SAXReader reader = new SAXReader();
Document domdoc; Document domdoc;
domdoc = reader.read(fr); domdoc = reader.read(fr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment