зеркало из https://github.com/github/codeql.git
C++: Do something similar with the other three cases.
This commit is contained in:
Родитель
316117f5c9
Коммит
1a416884d4
|
@ -31,9 +31,7 @@ predicate hardCodedAddressOrIP(StringLiteral txt) {
|
|||
// Hard-coded ip addresses, such as 127.0.0.1
|
||||
s.regexpMatch("\"[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+\"") or
|
||||
// Hard-coded addresses such as www.mycompany.com
|
||||
s.matches("\"www.%\"") or
|
||||
s.matches("\"http:%\"") or
|
||||
s.matches("\"https:%\"") or
|
||||
s.regexpMatch("\"(www\\.|http:|https:).*\"") or
|
||||
s.regexpMatch("\".*\\.(" + concat(getATopLevelDomain(), "|") + ")\"")
|
||||
)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче