C#: Address review comments.

This commit is contained in:
Michael Nebel
2024-09-25 17:06:19 +02:00
parent af80797eda
commit 1dcc6ac2b1
2 changed files with 2 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ class HtmlTextWriterSink extends HtmlSink {
deprecated class AttributeCollectionSink extends DataFlow::ExprNode {
AttributeCollectionSink() {
exists(SystemWebUIAttributeCollectionClass ac, Parameter p |
p = ac.getAddMethod().getParameter(1) or
p = ac.getItemProperty().getSetter().getParameter(0)
|
this.getExpr() = p.getAnAssignedArgument()

View File

@@ -1,4 +1,4 @@
---
category: minorAnalysis
---
* C#: The indexer and `Add` method on `System.Web.UI.AttributeCollection` is no longer considered a HTML sink.
* C#: The indexer and `Add` method on `System.Web.UI.AttributeCollection` is no longer considered an HTML sink.