Skip to content

Commit bdfb810

Browse files
authored
Merge pull request github#4969 from asgerf/js/angular-dom-santizier-from-core
Approved by erik-krogh
2 parents 2a8a283 + 3db6069 commit bdfb810

File tree

4 files changed

+172
-160
lines changed

4 files changed

+172
-160
lines changed

javascript/ql/src/semmle/javascript/frameworks/Angular2.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ module Angular2 {
120120

121121
/** Gets a reference to a `DomSanitizer` object. */
122122
DataFlow::SourceNode domSanitizer() {
123-
result.hasUnderlyingType("@angular/platform-browser", "DomSanitizer")
123+
result.hasUnderlyingType(["@angular/platform-browser", "@angular/core"], "DomSanitizer")
124124
}
125125

126126
/** A value that is about to be promoted to a trusted HTML or CSS value. */

0 commit comments

Comments
 (0)