Skip to content

Commit 1f9749f

Browse files
committed
revert mailto: change in TargetBlank.ql
1 parent d7a96d6 commit 1f9749f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

javascript/ql/src/DOM/TargetBlank.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ predicate hasDynamicHrefHostAttributeValue(DOM::ElementDefinition elem) {
3131
// fixed string with templating
3232
url.regexpMatch(Templating::getDelimiterMatchingRegexpWithPrefix("[^?#]*")) and
3333
// ... that does not start with a fixed host or a relative path (common formats)
34-
not url.regexpMatch("(?i)((https?:)?//)?[-a-z0-9.]*/.*") and
35-
// ... that is not a mailto: link
36-
not url.regexpMatch("mailto:.*")
34+
not url.regexpMatch("(?i)((https?:)?//)?[-a-z0-9.]*/.*")
3735
)
3836
)
3937
}

0 commit comments

Comments
 (0)