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 298c6b5 commit 286e395Copy full SHA for 286e395
javascript/ql/src/DOM/TargetBlank.ql
@@ -44,7 +44,9 @@ predicate hasDynamicHrefHostAttributeValue(DOM::ElementDefinition elem) {
44
// ... that does not start with a fixed host or a relative path (common formats)
45
not url.regexpMatch("(?i)((https?:)?//)?[-a-z0-9.]*/.*") and
46
// .. that is not a call to `url_for` in a Flask / nunjucks application
47
- not url.regexpMatch("\\{\\{\\s*url(_for)?\\(.+\\).*")
+ not url.regexpMatch("\\{\\{\\s*url(_for)?\\(.+\\).*") and
48
+ // .. that is not a call to `url` in a Django application
49
+ not url.regexpMatch("\\{%\\s*url.*")
50
)
51
52
}
0 commit comments