Default entity resolution should be disabled before parsing.
This commit is contained in:
parent
2ef85d43d4
commit
807bc88a68
|
@ -188,6 +188,8 @@ void VAbstractConverter::ValidateXML(const QString &schema) const
|
|||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
XERCES_CPP_NAMESPACE::XercesDOMParser domParser;
|
||||
domParser.setCreateEntityReferenceNodes(true);
|
||||
domParser.setDisableDefaultEntityResolution(true);
|
||||
domParser.setErrorHandler(&parserErrorHandler);
|
||||
|
||||
QByteArray const data = fileSchema.readAll();
|
||||
|
|
Loading…
Reference in New Issue
Block a user