Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit ed8b426

Browse files
committed
xinclude: Set error handler when parsing text
1 parent a0330b5 commit ed8b426

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

xinclude.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,8 @@ xmlXIncludeLoadTxt(xmlXIncludeCtxtPtr ctxt, xmlXIncludeRefPtr ref) {
16531653
xmlXIncludeErrMemory(ctxt);
16541654
goto error;
16551655
}
1656+
if (ctxt->errorHandler != NULL)
1657+
xmlCtxtSetErrorHandler(pctxt, ctxt->errorHandler, ctxt->errorCtxt);
16561658
inputStream = xmlLoadExternalEntity((const char*)url, NULL, pctxt);
16571659
if (inputStream == NULL) {
16581660
/*

0 commit comments

Comments
 (0)