mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Fixes
This commit is contained in:
@@ -144,5 +144,5 @@ predicate missingPinning(DataFlow::Node node, string domain) {
|
||||
|
||||
/** Gets the domain name from the given string literal */
|
||||
private string getDomain(CompileTimeConstantExpr expr) {
|
||||
result = expr.getStringValue().regexpCapture("(https?://)?([^/]*)/?", 2)
|
||||
result = expr.getStringValue().regexpCapture("(https?://)?([^/]*)(/.*)?", 2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user