Skip to content

Commit d628cc5

Browse files
geoffw0MathiasVP
andauthored
Update cpp/ql/src/Security/CWE/CWE-290/AuthenticationBypass.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 1a41688 commit d628cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-290/AuthenticationBypass.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ predicate hardCodedAddressOrIP(StringLiteral txt) {
3232
s.regexpMatch("\"[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+\"") or
3333
// Hard-coded addresses such as www.mycompany.com
3434
s.regexpMatch("\"(www\\.|http:|https:).*\"") or
35-
s.regexpMatch("\".*\\.(" + concat(getATopLevelDomain(), "|") + ")\"")
35+
s.regexpMatch("\".*\\.(" + strictconcat(getATopLevelDomain(), "|") + ")\"")
3636
)
3737
}
3838

0 commit comments

Comments
 (0)