mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
item_xmlfunc.cc:
After review fix. Thanks to Gluh for suggestion. Bug#18172: XML: Extractvalue() accepts mallformed XPath without a XPath syntax error
This commit is contained in:
parent
2e7cf881ac
commit
1ddf3c2705
1 changed files with 2 additions and 7 deletions
|
@ -1561,13 +1561,8 @@ static int my_xpath_parse_AbsoluteLocationPath(MY_XPATH *xpath)
|
|||
return my_xpath_parse_RelativeLocationPath(xpath);
|
||||
}
|
||||
|
||||
if (my_xpath_parse_term(xpath, MY_XPATH_LEX_EOF))
|
||||
return 1;
|
||||
|
||||
if (my_xpath_parse_RelativeLocationPath(xpath))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
return my_xpath_parse_term(xpath, MY_XPATH_LEX_EOF) ||
|
||||
my_xpath_parse_RelativeLocationPath(xpath);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue