Skip to content

Commit 1dcc6ac

Browse files
committed
C#: Address review comments.
1 parent af80797 commit 1dcc6ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsinks/Html.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class HtmlTextWriterSink extends HtmlSink {
6161
deprecated class AttributeCollectionSink extends DataFlow::ExprNode {
6262
AttributeCollectionSink() {
6363
exists(SystemWebUIAttributeCollectionClass ac, Parameter p |
64+
p = ac.getAddMethod().getParameter(1) or
6465
p = ac.getItemProperty().getSetter().getParameter(0)
6566
|
6667
this.getExpr() = p.getAnAssignedArgument()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
category: minorAnalysis
33
---
4-
* C#: The indexer and `Add` method on `System.Web.UI.AttributeCollection` is no longer considered a HTML sink.
4+
* C#: The indexer and `Add` method on `System.Web.UI.AttributeCollection` is no longer considered an HTML sink.

0 commit comments

Comments
 (0)