mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
recognize more HTML attribute concatenations
This commit is contained in:
@@ -51,8 +51,11 @@ module IncompleteHtmlAttributeSanitization {
|
||||
string lhs;
|
||||
|
||||
HtmlAttributeConcatenation() {
|
||||
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("(.*)=\"[^\"]*", 1) and
|
||||
this.getNextLeaf().getStringValue().regexpMatch(".*\".*")
|
||||
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("((?:[\n\r]|.)*)=\"[^\"]*", 1) and
|
||||
(
|
||||
this.getNextLeaf().getStringValue().regexpMatch(".*\".*") or
|
||||
this.getRoot().getConstantStringParts().regexpMatch("(?:[\n\r]|.)*</.*")
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user