Skip to content

Commit 502cf38

Browse files
committed
Use concise API
1 parent 1b1c3f9 commit 502cf38

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/ql/src/experimental/Security/CWE/CWE-1004/SensitiveCookieNotHttpOnly.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ class SensitiveCookieNameExpr extends Expr {
4848
ClassInstanceExpr cie // new Cookie("jwt_token", token)
4949
|
5050
(
51-
cie.getConstructor().getDeclaringType().hasQualifiedName("javax.servlet.http", "Cookie") or
52-
cie.getConstructor()
53-
.getDeclaringType()
51+
cie.getConstructedType().hasQualifiedName("javax.servlet.http", "Cookie") or
52+
cie.getConstructedType()
5453
.getASupertype*()
5554
.hasQualifiedName(["javax.ws.rs.core", "jakarta.ws.rs.core"], "Cookie")
5655
) and

0 commit comments

Comments
 (0)