mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-29 21:46:59 +03:00
Skip silently unrecognized XPointer schemes
* xpointer.c: unrecognized XPointers should be skipped instead of aborting the full XPointer evaluation
This commit is contained in:
parent
023d0babc4
commit
928d703386
@ -1152,10 +1152,12 @@ xmlXPtrEvalFullXPtr(xmlXPathParserContextPtr ctxt, xmlChar *name) {
|
||||
if (name == NULL)
|
||||
XP_ERROR(XPATH_EXPR_ERROR);
|
||||
while (name != NULL) {
|
||||
ctxt->error = XPATH_EXPRESSION_OK;
|
||||
xmlXPtrEvalXPtrPart(ctxt, name);
|
||||
|
||||
/* in case of syntax error, break here */
|
||||
if (ctxt->error != XPATH_EXPRESSION_OK)
|
||||
if ((ctxt->error != XPATH_EXPRESSION_OK) &&
|
||||
(ctxt->error != XML_XPTR_UNKNOWN_SCHEME))
|
||||
return;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user