Skip to content

Commit 72429cb

Browse files
committed
C#: Generic classes should not be considered controllers.
1 parent eed0469 commit 72429cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class MicrosoftAspNetCoreMvcController extends Class {
205205
) and
206206
this.isPublic() and
207207
not this.isAbstract() and
208-
not this.containsTypeParameters() and
208+
not this instanceof Generic and
209209
(
210210
this.getABaseType*() instanceof MicrosoftAspNetCoreMvcControllerBaseClass
211211
or

0 commit comments

Comments
 (0)