From 3d281fbb71c775d34f92f3a9773089b555a91e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Loba=C4=8Devski?= Date: Thu, 2 Jun 2022 14:39:39 +0300 Subject: [PATCH] fix suffix match --- .../lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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