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
6
6
7
7
/** Provides classes for working with XPath-related APIs. */
8
8
module 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
+
9
21
/** Provides classes for working with XPath expression strings. */
10
22
module XPathExpressionString {
11
23
/**
12
24
* A data-flow node whose string value is interpreted as (part of) an XPath expression.
13
25
*
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.
15
28
*/
16
29
abstract class Range extends DataFlow:: Node { }
17
30
Original file line number Diff line number Diff line change @@ -36,6 +36,6 @@ module XPathInjection {
36
36
37
37
/** An XPath expression string, considered as a taint sink for XPath injection. */
38
38
class XPathExpressionStringAsSink extends Sink {
39
- XPathExpressionStringAsSink ( ) { this instanceof XPath:: XPathExpressionString:: Range }
39
+ XPathExpressionStringAsSink ( ) { this instanceof XPath:: XPathExpressionString }
40
40
}
41
41
}
You can’t perform that action at this time.
0 commit comments