Skip to content

Commit 1c10fca

Browse files
committed
Move HttpStringLiteral class documentation
1 parent 856f217 commit 1c10fca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎cpp/ql/src/Security/CWE/CWE-319/UseOfHttp.ql‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ predicate privateHostNameFlowsToExpr(Expr e) {
3535
TaintTracking::localExprTaint(any(StringLiteral p | p.getValue() instanceof PrivateHostName), e)
3636
}
3737

38-
/**
39-
* A string containing an HTTP URL not in a private domain.
40-
*/
4138
private class HttpStringLiteralCandidate extends StringLiteral {
4239
HttpStringLiteralCandidate() {
4340
exists(string s | this.getValue() = s |
@@ -50,6 +47,9 @@ private class HttpStringLiteralCandidate extends StringLiteral {
5047
}
5148
}
5249

50+
/**
51+
* A string containing an HTTP URL not in a private domain.
52+
*/
5353
class HttpStringLiteral extends HttpStringLiteralCandidate {
5454
HttpStringLiteral() { not privateHostNameFlowsToExpr(this.getParent*()) }
5555
}

0 commit comments

Comments
 (0)