mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
use the DOTALL flag
This commit is contained in:
@@ -51,10 +51,10 @@ module IncompleteHtmlAttributeSanitization {
|
||||
string lhs;
|
||||
|
||||
HtmlAttributeConcatenation() {
|
||||
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("((?:[\n\r]|.)*)=\"[^\"]*", 1) and
|
||||
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("(?s)(.*)=\"[^\"]*", 1) and
|
||||
(
|
||||
this.getNextLeaf().getStringValue().regexpMatch(".*\".*") or
|
||||
this.getRoot().getConstantStringParts().regexpMatch("(?:[\n\r]|.)*</.*")
|
||||
this.getRoot().getConstantStringParts().regexpMatch("(?s).*</.*")
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user