mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Replace regex
This commit is contained in:
@@ -112,7 +112,7 @@ module InsecureCookie {
|
||||
// A cookie is insecure if the 'secure' flag is not specified in the cookie definition.
|
||||
not exists(string s |
|
||||
getCookieOptionsArgument().mayHaveStringValue(s) and
|
||||
s.matches("%; secure%")
|
||||
s.regexpMatch("(.*;)?\\s*secure.*")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user