mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-09-08 01:54:37 +02:00
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)
|
#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();
|
||||||
|
|
Loading…
Reference in a new issue