We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f09f0e commit 316117fCopy full SHA for 316117f
cpp/ql/src/Security/CWE/CWE-290/AuthenticationBypass.ql
@@ -34,7 +34,7 @@ predicate hardCodedAddressOrIP(StringLiteral txt) {
34
s.matches("\"www.%\"") or
35
s.matches("\"http:%\"") or
36
s.matches("\"https:%\"") or
37
- s.regexpMatch("\".*\\." + getATopLevelDomain() + "\"")
+ s.regexpMatch("\".*\\.(" + concat(getATopLevelDomain(), "|") + ")\"")
38
)
39
}
40
0 commit comments