Default entity resolution should be disabled before parsing.

develop
Roman Telezhynskyi 2024-02-16 19:34:05 +02:00
parent 2ef85d43d4
commit 807bc88a68
1 changed files with 2 additions and 0 deletions

View File

@ -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();