Getting colder with our second freeze... it's 3.31.91 release day and string freeze, upload a tarball and lock those strings 🏂

Commit 18773041 authored by Federico Mena Quintero's avatar Federico Mena Quintero

Set replaceEntities where we set the rest of the XML parser's options

It's a bit iffy that we do it by directly poking inside the
xmlParserCtxPtr...
parent 9aedfb93
......@@ -688,6 +688,11 @@ rsvg_set_xml_parse_options(xmlParserCtxtPtr xml_parser,
}
xmlCtxtUseOptions (xml_parser, options);
/* if false, external entities work, but internal ones don't. if true, internal entities
work, but external ones don't. favor internal entities, in order to not cause a
regression */
xml_parser->replaceEntities = TRUE;
}
/* http://www.w3.org/TR/xinclude/ */
......@@ -1317,11 +1322,6 @@ create_xml_push_parser_ctxt (RsvgHandle *handle)
handle->priv->ctxt = xmlCreatePushParserCtxt (&rsvgSAXHandlerStruct, handle, NULL, 0,
rsvg_handle_get_base_uri (handle));
rsvg_set_xml_parse_options(handle->priv->ctxt, handle);
/* if false, external entities work, but internal ones don't. if true, internal entities
work, but external ones don't. favor internal entities, in order to not cause a
regression */
handle->priv->ctxt->replaceEntities = TRUE;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment