Skip to content

Commit 9b047f6

Browse files
committed
use the DOTALL flag
1 parent fd561d1 commit 9b047f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ module IncompleteHtmlAttributeSanitization {
5151
string lhs;
5252

5353
HtmlAttributeConcatenation() {
54-
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("((?:[\n\r]|.)*)=\"[^\"]*", 1) and
54+
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("(?s)(.*)=\"[^\"]*", 1) and
5555
(
5656
this.getNextLeaf().getStringValue().regexpMatch(".*\".*") or
57-
this.getRoot().getConstantStringParts().regexpMatch("(?:[\n\r]|.)*</.*")
57+
this.getRoot().getConstantStringParts().regexpMatch("(?s).*</.*")
5858
)
5959
}
6060

0 commit comments

Comments
 (0)