mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-07 06:43:02 +03:00
Alexey Efimov pointed out that concat('a', 'b', ) should raise a syntax
* xpath.c: Alexey Efimov pointed out that concat('a', 'b', ) should raise a syntax error Daniel
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
Tue Jan 14 17:00:08 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* xpath.c: Alexey Efimov pointed out that concat('a', 'b', )
|
||||||
|
should raise a syntax error
|
||||||
|
|
||||||
Tue Jan 14 15:39:14 CET 2003 Daniel Veillard <daniel@veillard.com>
|
Tue Jan 14 15:39:14 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* python/libxml.c: cleanup patch from St<53>phane Bidoul
|
* python/libxml.c: cleanup patch from St<53>phane Bidoul
|
||||||
|
26
xpath.c
26
xpath.c
@@ -7617,19 +7617,21 @@ xmlXPathCompFunctionCall(xmlXPathParserContextPtr ctxt) {
|
|||||||
SKIP_BLANKS;
|
SKIP_BLANKS;
|
||||||
|
|
||||||
ctxt->comp->last = -1;
|
ctxt->comp->last = -1;
|
||||||
while (CUR != ')') {
|
if (CUR != ')') {
|
||||||
int op1 = ctxt->comp->last;
|
while (CUR != 0) {
|
||||||
ctxt->comp->last = -1;
|
int op1 = ctxt->comp->last;
|
||||||
xmlXPathCompileExpr(ctxt);
|
ctxt->comp->last = -1;
|
||||||
CHECK_ERROR;
|
xmlXPathCompileExpr(ctxt);
|
||||||
PUSH_BINARY_EXPR(XPATH_OP_ARG, op1, ctxt->comp->last, 0, 0);
|
CHECK_ERROR;
|
||||||
nbargs++;
|
PUSH_BINARY_EXPR(XPATH_OP_ARG, op1, ctxt->comp->last, 0, 0);
|
||||||
if (CUR == ')') break;
|
nbargs++;
|
||||||
if (CUR != ',') {
|
if (CUR == ')') break;
|
||||||
XP_ERROR(XPATH_EXPR_ERROR);
|
if (CUR != ',') {
|
||||||
|
XP_ERROR(XPATH_EXPR_ERROR);
|
||||||
|
}
|
||||||
|
NEXT;
|
||||||
|
SKIP_BLANKS;
|
||||||
}
|
}
|
||||||
NEXT;
|
|
||||||
SKIP_BLANKS;
|
|
||||||
}
|
}
|
||||||
PUSH_LONG_EXPR(XPATH_OP_FUNCTION, nbargs, 0, 0,
|
PUSH_LONG_EXPR(XPATH_OP_FUNCTION, nbargs, 0, 0,
|
||||||
name, prefix);
|
name, prefix);
|
||||||
|
Reference in New Issue
Block a user