We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load-external-dtd
Check for places that load xml files and set the load-external-dtd flag to false.
One placed I identified already: XmlDocument.createDocument(File)
XmlDocument.createDocument(File)
DocumentBuilderFactory f = DocumentBuilderFactory.newInstance(); f.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false); f.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
The text was updated successfully, but these errors were encountered:
Also affected:
HttpPortUtil.getHttpPortFromConfigVariableXML ServerConfigDocument.getDocumentBuilder DevUtil.getOmitFilesList ServerFeatureUtil.getServerXmlFeatures
HttpPortUtil.getHttpPortFromConfigVariableXML
ServerConfigDocument.getDocumentBuilder
DevUtil.getOmitFilesList
ServerFeatureUtil.getServerXmlFeatures
Finally, both LMP and LGP have a bunch of tests that load XML files and should specify these flags. Just search for DocumentBuilderFactory.
DocumentBuilderFactory
Sorry, something went wrong.
cherylking
Successfully merging a pull request may close this issue.
Check for places that load xml files and set the
load-external-dtd
flag to false.One placed I identified already:
XmlDocument.createDocument(File)
The text was updated successfully, but these errors were encountered: