Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
424c84c9
Commit
424c84c9
authored
2 years ago
by
Vincent Massol
Browse files
Options
Downloads
Patches
Plain Diff
[Misc] Explain why the code is safe
parent
fd2129da
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-tools/xwiki-platform-tool-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojo.java
+1
-0
1 addition, 0 deletions
...ain/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojo.java
with
1 addition
and
0 deletions
xwiki-platform-tools/xwiki-platform-tool-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojo.java
+
1
−
0
View file @
424c84c9
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment