Skip to content

Commit 29639a0

Browse files
committed
C#: ControllerBase should still be considered a controller as we need Redirect methods to be considered sinks.
1 parent 85eee88 commit 29639a0

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
)
206206
) and
207207
this.isPublic() and
208-
not this.isAbstract() and
208+
(not this.isAbstract() or this instanceof MicrosoftAspNetCoreMvcControllerBaseClass) and
209209
not this instanceof Generic and
210210
(
211211
this.getABaseType*() instanceof MicrosoftAspNetCoreMvcControllerBaseClass

0 commit comments

Comments
 (0)