Skip to content

Commit 000826a

Browse files
author
edvraa
committed
typo
1 parent 65183cd commit 000826a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/experimental/semmle/javascript/security/InsecureCookie.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module Cookie {
115115
}
116116

117117
override predicate isSecure() {
118-
// The flag `secure` is not set by default (https://github.com/expressjs/session#Cookieecure).
118+
// The flag `secure` is not set by default (https://github.com/expressjs/session#Cookiesecure).
119119
// The default value for cookie options is { path: '/', httpOnly: true, secure: false, maxAge: null }.
120120
// A cookie is secure if there are the cookie options with the `secure` flag set to `true` or to `auto`.
121121
getCookieFlagValue(secureFlag()).mayHaveBooleanValue(true) or
@@ -127,7 +127,7 @@ module Cookie {
127127
}
128128

129129
override predicate isHttpOnly() {
130-
// The flag `httpOnly` is set by default (https://github.com/expressjs/session#Cookieecure).
130+
// The flag `httpOnly` is set by default (https://github.com/expressjs/session#Cookiesecure).
131131
// The default value for cookie options is { path: '/', httpOnly: true, secure: false, maxAge: null }.
132132
// A cookie is httpOnly if the `httpOnly` flag is not explicitly set to `false`.
133133
not getCookieFlagValue(httpOnlyFlag()).mayHaveBooleanValue(false)

0 commit comments

Comments
 (0)