Skip to content

Commit 3c97bcb

Browse files
committed
C#: Exclude properties from the Attribute selection.
1 parent add0332 commit 3c97bcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/ExternalFlow.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ Declaration interpretElement(
427427
|
428428
ext = "" and result = d
429429
or
430-
ext = "Attribute" and result.(Attributable).getAnAttribute().getType() = d
430+
ext = "Attribute" and
431+
result.(Attributable).getAnAttribute().getType() = d and
432+
not result instanceof Property
431433
)
432434
}
433435

0 commit comments

Comments
 (0)