diff --git a/csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll b/csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll index 7704b83f9be..4abd9373dbe 100644 --- a/csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll +++ b/csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll @@ -199,7 +199,7 @@ class MicrosoftAspNetCoreMvcController extends Class { MicrosoftAspNetCoreMvcController() { ( this.getABaseType*() instanceof MicrosoftAspNetCoreMvcControllerBaseClass or - this.getABaseType*().hasName("%Controller") or + this.getABaseType*().getName().matches("%Controller") or this.getABaseType*().getAnAttribute() instanceof MicrosoftAspNetCoreMvcControllerAttribute ) and not this.getABaseType*().getAnAttribute() instanceof