File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
javascript/ql/test/library-tests/frameworks/Angular2 Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- import { Component } from "@angular/core" ;
1
+ import { Component , ElementRef } from "@angular/core" ;
2
2
import { DomSanitizer } from '@angular/platform-browser' ;
3
3
4
4
@Component ( {
@@ -9,6 +9,7 @@ export class Source {
9
9
taint : string ;
10
10
taintedArray : string [ ] ;
11
11
safeArray : string [ ] ;
12
+ elementRef : ElementRef ;
12
13
13
14
constructor ( private sanitizer : DomSanitizer ) {
14
15
this . taint = source ( ) ;
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ pipeClassRef
24
24
taintFlow
25
25
| inline.component.ts:15:22:15:29 | source() | sink.component.ts:28:48:28:57 | this.sink7 |
26
26
| inline.component.ts:15:22:15:29 | source() | sink.component.ts:30:48:30:57 | this.sink9 |
27
- | source.component.ts:14 :22:14 :29 | source() | TestPipe.ts:6:31:6:35 | value |
28
- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
29
- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:25:48:25:57 | this.sink4 |
30
- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:26:48:26:57 | this.sink5 |
31
- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
32
- | source.component.ts:14 :22:14 :29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
33
- | source.component.ts:14 :22:14 :29 | source() | source.component.ts:20 :48:20 :48 | x |
34
- | source.component.ts:15 :33:15 :40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
27
+ | source.component.ts:15 :22:15 :29 | source() | TestPipe.ts:6:31:6:35 | value |
28
+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
29
+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:25:48:25:57 | this.sink4 |
30
+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:26:48:26:57 | this.sink5 |
31
+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
32
+ | source.component.ts:15 :22:15 :29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
33
+ | source.component.ts:15 :22:15 :29 | source() | source.component.ts:21 :48:21 :48 | x |
34
+ | source.component.ts:16 :33:16 :40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
35
35
testAttrSourceLocation
36
36
| inline.component.ts:8:43:8:60 | [testAttr]=taint | inline.component.ts:8:55:8:59 | <toplevel> |
You can’t perform that action at this time.
0 commit comments