From e12cd2c68979055d5b1559b8eabf84b13bc44342 Mon Sep 17 00:00:00 2001 From: Max Schaefer Date: Mon, 19 Apr 2021 14:52:36 +0100 Subject: [PATCH] Revert "JS: Recognize DomSanitizer from @angular/core" This reverts commit ff1d0cc4c7fc8afcf076b1afc5c64d15b565796e. --- javascript/ql/lib/semmle/javascript/frameworks/Angular2.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ql/lib/semmle/javascript/frameworks/Angular2.qll b/javascript/ql/lib/semmle/javascript/frameworks/Angular2.qll index 6a2e0132678..111570a2380 100644 --- a/javascript/ql/lib/semmle/javascript/frameworks/Angular2.qll +++ b/javascript/ql/lib/semmle/javascript/frameworks/Angular2.qll @@ -136,7 +136,7 @@ module Angular2 { /** Gets a reference to a `DomSanitizer` object. */ DataFlow::SourceNode domSanitizer() { - result.hasUnderlyingType(["@angular/platform-browser", "@angular/core"], "DomSanitizer") + result.hasUnderlyingType("@angular/platform-browser", "DomSanitizer") } /** A value that is about to be promoted to a trusted HTML or CSS value. */