Skip to content

Commit b618ae0

Browse files
committed
Model Blazor attributes as marking sources
The attributes - `[Parameter]` - `[SupplyParameterFromFormAttribute]` - `[SupplyParameterFromQueryAttribute]` Tell Blazor to initialize the variables with parameters defined by the route/form values/query parameters/etc. Values derived from the URI or form should be classified as `remote` flow sources.
1 parent 90dbc34 commit b618ae0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csharp/ql/lib/ext/Microsoft.AspNetCore.Components.model.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ extensions:
55
data:
66
- ["Microsoft.AspNetCore.Components", "NavigationManager", True, "get_BaseUri", "", "", "ReturnValue", "remote", "manual"]
77
- ["Microsoft.AspNetCore.Components", "NavigationManager", True, "get_Uri", "", "", "ReturnValue", "remote", "manual"]
8+
- ["Microsoft.AspNetCore.Components", "ParameterAttribute", False, "", "", "Attribute.Getter", "ReturnValue", "remote", "manual"]
9+
- ["Microsoft.AspNetCore.Components", "SupplyParameterFromFormAttribute", False, "", "", "Attribute.Getter", "ReturnValue", "remote", "manual"]
10+
- ["Microsoft.AspNetCore.Components", "SupplyParameterFromQueryAttribute", False, "", "", "Attribute.Getter", "ReturnValue", "remote", "manual"]
811
- addsTo:
912
pack: codeql/csharp-all
1013
extensible: summaryModel

0 commit comments

Comments
 (0)