Skip to content

Commit 63a14d1

Browse files
committed
use HtmlConcatenationLeaf
1 parent 9b047f6 commit 63a14d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/security/dataflow/IncompleteHtmlAttributeSanitizationCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module IncompleteHtmlAttributeSanitization {
5454
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("(?s)(.*)=\"[^\"]*", 1) and
5555
(
5656
this.getNextLeaf().getStringValue().regexpMatch(".*\".*") or
57-
this.getRoot().getConstantStringParts().regexpMatch("(?s).*</.*")
57+
this instanceof StringOps::HtmlConcatenationLeaf
5858
)
5959
}
6060

0 commit comments

Comments
 (0)