revert mailto: change in TargetBlank.ql

This commit is contained in:
Erik Krogh Kristensen
2020-09-03 09:39:01 +02:00
parent d7a96d685a
commit 1f9749fbfe

View File

@@ -31,9 +31,7 @@ predicate hasDynamicHrefHostAttributeValue(DOM::ElementDefinition elem) {
// fixed string with templating
url.regexpMatch(Templating::getDelimiterMatchingRegexpWithPrefix("[^?#]*")) and
// ... that does not start with a fixed host or a relative path (common formats)
not url.regexpMatch("(?i)((https?:)?//)?[-a-z0-9.]*/.*") and
// ... that is not a mailto: link
not url.regexpMatch("mailto:.*")
not url.regexpMatch("(?i)((https?:)?//)?[-a-z0-9.]*/.*")
)
)
}