2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-11 05:43:28 +00:00

Merge branch 'MShwed-bugs/xpath-namespace-prefix-fix'

This commit is contained in:
n1474335
2019-03-11 11:54:11 +00:00

View File

@@ -57,7 +57,7 @@ class XPathExpression extends Operation {
let nodes; let nodes;
try { try {
nodes = xpath.select(query, doc); nodes = xpath.parse(query).select({ node: doc, allowAnyNamespaceForNoPrefix: true });
} catch (err) { } catch (err) {
throw new OperationError(`Invalid XPath. Details:\n${err.message}.`); throw new OperationError(`Invalid XPath. Details:\n${err.message}.`);
} }