There was an error while loading. Please reload this page.
1 parent 4cdb612 commit dac7892Copy full SHA for dac7892
1 file changed
csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll
@@ -359,10 +359,8 @@ private predicate isDefaultMicrosoftAspNetCoreMvcController(Class controller) {
359
(
360
hasMicrosoftAspNetCoreMvcControllerIdentity(controller)
361
or
362
- exists(Compilation application |
363
- controller.getName().toLowerCase().matches("%controller") and
364
- hasMicrosoftAspNetCoreMvcEndpointMapping(application, controller)
365
- )
+ controller.getName().toLowerCase().matches("%controller") and
+ hasMicrosoftAspNetCoreMvcEndpointMapping(_, controller)
366
) and
367
not controller.getABaseType*().getAnAttribute() instanceof
368
MicrosoftAspNetCoreMvcNonControllerAttribute
0 commit comments