Skip to content

Commit f0ddfc9

Browse files
committed
Minor qldoc changes
1 parent 72f2851 commit f0ddfc9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ class CookieResponseSink extends DataFlow::ExprNode {
7979
}
8080
}
8181

82-
/** Holds if `cie` is an invocation of a JAX-RS `NewCookie` constructor that sets `HttpOnly` to true. */
82+
/**
83+
* Holds if `ClassInstanceExpr` cie is an invocation of a JAX-RS `NewCookie` constructor
84+
* that sets `HttpOnly` to true.
85+
*/
8386
predicate setHttpOnlyInNewCookie(ClassInstanceExpr cie) {
8487
cie.getConstructedType().hasQualifiedName(["javax.ws.rs.core", "jakarta.ws.rs.core"], "NewCookie") and
8588
(
@@ -111,7 +114,7 @@ class CookieInstanceExpr extends TaintPreservingCallable {
111114
}
112115

113116
/**
114-
* Holds if the node is a test method indicated by:
117+
* Holds if the MethodAccess `ma` is a test method call indicated by:
115118
* a) in a test directory such as `src/test/java`
116119
* b) in a test package whose name has the word `test`
117120
* c) in a test class whose name has the word `test`

0 commit comments

Comments
 (0)