This repository was archived by the owner on Jan 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,25 @@ import go
66
77/** Provides classes for working with XPath-related APIs. */
88module XPath {
9+ /**
10+ * A data-flow node whose string value is interpreted as (part of) an XPath expression.
11+ *
12+ * Extend this class to refine existing API models. If you want to model new APIs,
13+ * extend `XPath::XPathExpressionString::Range` instead.
14+ */
15+ class XPathExpressionString extends DataFlow:: Node {
16+ XPathExpressionString:: Range self ;
17+
18+ XPathExpressionString ( ) { this = self }
19+ }
20+
921 /** Provides classes for working with XPath expression strings. */
1022 module XPathExpressionString {
1123 /**
1224 * A data-flow node whose string value is interpreted as (part of) an XPath expression.
1325 *
14- * Extend this class to model new APIs.
26+ * Extend this class to model new APIs. If you want to refine existing API models,
27+ * extend `XPath::XPathExpressionString` instead.
1528 */
1629 abstract class Range extends DataFlow:: Node { }
1730
Original file line number Diff line number Diff line change @@ -36,6 +36,6 @@ module XPathInjection {
3636
3737 /** An XPath expression string, considered as a taint sink for XPath injection. */
3838 class XPathExpressionStringAsSink extends Sink {
39- XPathExpressionStringAsSink ( ) { this instanceof XPath:: XPathExpressionString:: Range }
39+ XPathExpressionStringAsSink ( ) { this instanceof XPath:: XPathExpressionString }
4040 }
4141}
You can’t perform that action at this time.
0 commit comments