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 @@ -328,6 +328,7 @@ private predicate isMicrosoftAspNetCoreMvcAttributeEndpointMapping(MethodCall ca
328328}
329329
330330private predicate hasMicrosoftAspNetCoreMvcEndpointMapping ( Compilation application , Class controller ) {
331+ isInMicrosoftAspNetCoreMvcApplication ( controller , application ) and
331332 exists ( MethodCall mapping |
332333 application .getAFileCompiled ( ) = mapping .getFile ( ) and
333334 (
@@ -360,7 +361,6 @@ private predicate isDefaultMicrosoftAspNetCoreMvcController(Class controller) {
360361 or
361362 exists ( Compilation application |
362363 controller .getName ( ) .toLowerCase ( ) .matches ( "%controller" ) and
363- isInMicrosoftAspNetCoreMvcApplication ( controller , application ) and
364364 hasMicrosoftAspNetCoreMvcEndpointMapping ( application , controller )
365365 )
366366 ) and
@@ -410,7 +410,7 @@ class MicrosoftAspNetCoreMvcController extends Class {
410410 not result instanceof DisposeMethod
411411 }
412412
413- /** Gets a `Redirect*` method. */
413+ /** Gets a `Redirect*`, `Accepted*`, or `Created*` method. */
414414 Method getARedirectMethod ( ) {
415415 result = this .( MicrosoftAspNetCoreMvcControllerHelperClass ) .getAResponseMethod ( )
416416 }
You can’t perform that action at this time.
0 commit comments