From 239d052b3da2f7e774f563fa0bc9869af92f9d91 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 13 Jun 2001 23:02:48 +0000 Subject: [PATCH] - xpath.c: bug detected by Ankh when / is used as a function arg Daniel --- ChangeLog | 4 ++++ xpath.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1913aa27..447960d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 14 01:01:30 CEST 2001 Daniel Veillard + + * xpath.c: bug detected by Ankh when / is used as a function arg + Wed Jun 13 23:08:46 CEST 2001 Daniel Veillard * HTMLparser.[ch] HTMLtree.c: stored the inline/block property diff --git a/xpath.c b/xpath.c index fc1aa084..cabb3af7 100644 --- a/xpath.c +++ b/xpath.c @@ -7085,8 +7085,8 @@ xmlXPathCompLocationPath(xmlXPathParserContextPtr ctxt) { xmlXPathCompRelativeLocationPath(ctxt); } else if (CUR == '/') { NEXT; - SKIP_BLANKS; - if (CUR != 0) + /* SKIP_BLANKS; */ + if ((CUR != 0) && (CUR != ')') && (CUR != ',')) xmlXPathCompRelativeLocationPath(ctxt); } }