File tree Expand file tree Collapse file tree
csharp/ql/lib/semmle/code/csharp/frameworks/microsoft Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,6 +220,8 @@ private predicate isPotentialMicrosoftAspNetCoreMvcController(Class controller)
220220 )
221221}
222222
223+ bindingset [ element]
224+ pragma [ inline_late]
223225private Compilation getACompilationFor ( Element element ) {
224226 result .getAFileCompiled ( ) = element .getFile ( )
225227}
@@ -351,7 +353,7 @@ private predicate isMicrosoftAspNetCoreMvcFallbackEndpointMapping(MethodCall cal
351353private predicate hasMicrosoftAspNetCoreMvcEndpointMapping ( Compilation application , Class controller ) {
352354 isInMicrosoftAspNetCoreMvcApplication ( controller , application ) and
353355 exists ( MethodCall mapping |
354- application . getAFileCompiled ( ) = mapping . getFile ( ) and
356+ application = getACompilationFor ( mapping ) and
355357 (
356358 isMicrosoftAspNetCoreMvcConventionalEndpointMapping ( mapping )
357359 or
You can’t perform that action at this time.
0 commit comments