xinclude: Set error handler when parsing text

This commit is contained in:
Nick Wellnhofer 2024-07-18 20:56:31 +02:00
parent a0330b53c8
commit ed8b4264f6

View File

@ -1653,6 +1653,8 @@ xmlXIncludeLoadTxt(xmlXIncludeCtxtPtr ctxt, xmlXIncludeRefPtr ref) {
xmlXIncludeErrMemory(ctxt);
goto error;
}
if (ctxt->errorHandler != NULL)
xmlCtxtSetErrorHandler(pctxt, ctxt->errorHandler, ctxt->errorCtxt);
inputStream = xmlLoadExternalEntity((const char*)url, NULL, pctxt);
if (inputStream == NULL) {
/*