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

Commit 9204d86

Browse files
committed
xinclude: Set XPath context doc
Regressed in commit 78eab7a.
1 parent 05976da commit 9204d86

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
@@ -1473,6 +1473,8 @@ xmlXIncludeLoadDoc(xmlXIncludeCtxtPtr ctxt, xmlXIncludeRefPtr ref) {
14731473
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
14741474
ctxt->xpctxt->opLimit = 100000;
14751475
#endif
1476+
} else {
1477+
ctxt->xpctxt->doc = doc;
14761478
}
14771479
xptr = xmlXPtrEval(fragment, ctxt->xpctxt);
14781480
if (ctxt->xpctxt->lastError.code != XML_ERR_OK) {

0 commit comments

Comments
 (0)