Skip to content

Commit 0d74d88

Browse files
committed
JS: Add new sink to test
1 parent 4df05b4 commit 0d74d88

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

javascript/ql/test/library-tests/frameworks/Angular2/source.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ export class Source {
1919

2020
methodOnComponent(x) {
2121
this.sanitizer.bypassSecurityTrustHtml(x);
22+
this.elementRef.nativeElement.innerHTML = x;
2223
}
2324
}

javascript/ql/test/library-tests/frameworks/Angular2/test.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ taintFlow
3131
| source.component.ts:15:22:15:29 | source() | sink.component.ts:27:48:27:57 | this.sink6 |
3232
| source.component.ts:15:22:15:29 | source() | sink.component.ts:29:48:29:57 | this.sink8 |
3333
| source.component.ts:15:22:15:29 | source() | source.component.ts:21:48:21:48 | x |
34+
| source.component.ts:15:22:15:29 | source() | source.component.ts:22:51:22:51 | x |
3435
| source.component.ts:16:33:16:40 | source() | sink.component.ts:22:48:22:57 | this.sink1 |
3536
testAttrSourceLocation
3637
| inline.component.ts:8:43:8:60 | [testAttr]=taint | inline.component.ts:8:55:8:59 | <toplevel> |

0 commit comments

Comments
 (0)