Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 35136bb

Browse files
committed
Add escape function.
1 parent 52d4c71 commit 35136bb

File tree

1 file changed

+8
-0
lines changed
  • ql/src/semmle/go/frameworks/stdlib

1 file changed

+8
-0
lines changed

ql/src/semmle/go/frameworks/stdlib/Html.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ import go
66

77
/** Provides models of commonly used functions in the `html` package. */
88
module Html {
9+
private class Escape extends EscapeFunction::Range {
10+
string kind;
11+
12+
Escape() { hasQualifiedName("html", "EscapeString") and kind = "html" }
13+
14+
override string kind() { result = kind }
15+
}
16+
917
private class FunctionModels extends TaintTracking::FunctionModel {
1018
FunctionInput inp;
1119
FunctionOutput outp;

0 commit comments

Comments
 (0)