Skip to content

Commit 3d281fb

Browse files
JarLobmichaelnebel
authored andcommitted
fix suffix match
1 parent 56055bd commit 3d281fb

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
@@ -199,7 +199,7 @@ class MicrosoftAspNetCoreMvcController extends Class {
199199
MicrosoftAspNetCoreMvcController() {
200200
(
201201
this.getABaseType*() instanceof MicrosoftAspNetCoreMvcControllerBaseClass or
202-
this.getABaseType*().hasName("%Controller") or
202+
this.getABaseType*().getName().matches("%Controller") or
203203
this.getABaseType*().getAnAttribute() instanceof MicrosoftAspNetCoreMvcControllerAttribute
204204
) and
205205
not this.getABaseType*().getAnAttribute() instanceof

0 commit comments

Comments
 (0)