mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
- xpath.c: Thomas Broyer suggested a better patch for the / arg
Daniel
This commit is contained in:
parent
239d052b3d
commit
608ad0791b
@ -1,3 +1,7 @@
|
||||
Thu Jun 14 10:31:17 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||
|
||||
* xpath.c: Thomas Broyer suggested a better patch for the / arg
|
||||
|
||||
Thu Jun 14 01:01:30 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||
|
||||
* xpath.c: bug detected by Ankh when / is used as a function arg
|
||||
|
6
xpath.c
6
xpath.c
@ -7085,8 +7085,10 @@ xmlXPathCompLocationPath(xmlXPathParserContextPtr ctxt) {
|
||||
xmlXPathCompRelativeLocationPath(ctxt);
|
||||
} else if (CUR == '/') {
|
||||
NEXT;
|
||||
/* SKIP_BLANKS; */
|
||||
if ((CUR != 0) && (CUR != ')') && (CUR != ','))
|
||||
SKIP_BLANKS;
|
||||
if ((CUR != 0 ) &&
|
||||
((IS_LETTER(CUR)) || (CUR == '_') || (CUR == '.') ||
|
||||
(CUR == '@') || (CUR == '*')))
|
||||
xmlXPathCompRelativeLocationPath(ctxt);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user