mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
xmllint should not load DTD by default when using the reader
This commit is contained in:
parent
a0571ebeac
commit
e4d16d7909
@ -1875,7 +1875,8 @@ static void streamFile(char *filename) {
|
||||
xmlTextReaderSetParserProp(reader, XML_PARSER_VALIDATE, 1);
|
||||
else
|
||||
#endif /* LIBXML_VALID_ENABLED */
|
||||
xmlTextReaderSetParserProp(reader, XML_PARSER_LOADDTD, 1);
|
||||
if (loaddtd)
|
||||
xmlTextReaderSetParserProp(reader, XML_PARSER_LOADDTD, 1);
|
||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||
if (relaxng != NULL) {
|
||||
if ((timing) && (!repeat)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user