Commit 1ddf3c27 authored by bar@mysql.com's avatar bar@mysql.com

item_xmlfunc.cc:

  After review fix.
  Thanks to Gluh for suggestion.
  Bug#18172: XML: Extractvalue() accepts mallformed XPath without a XPath syntax error
parent 2e7cf881
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment