Default entity resolution should be disabled before parsing.

This commit is contained in:
Roman Telezhynskyi 2024-02-16 19:34:05 +02:00
parent 2ef85d43d4
commit 807bc88a68

View File

@ -188,6 +188,8 @@ void VAbstractConverter::ValidateXML(const QString &schema) const
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
XERCES_CPP_NAMESPACE::XercesDOMParser domParser; XERCES_CPP_NAMESPACE::XercesDOMParser domParser;
domParser.setCreateEntityReferenceNodes(true);
domParser.setDisableDefaultEntityResolution(true);
domParser.setErrorHandler(&parserErrorHandler); domParser.setErrorHandler(&parserErrorHandler);
QByteArray const data = fileSchema.readAll(); QByteArray const data = fileSchema.readAll();