Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff1d0cc

Browse files
committed
JS: Recognize DomSanitizer from @angular/core
1 parent 545451e commit ff1d0cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)