File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
python/ql/src/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2029,7 +2029,7 @@ private module Django {
2029
2029
DjangoViewClassDef ( ) { this .getABase ( ) = django:: views:: generic:: View:: subclassRef ( ) .asExpr ( ) }
2030
2030
2031
2031
/** Gets a function that could handle incoming requests, if any. */
2032
- DjangoRouteHandler getARequestHandler ( ) {
2032
+ Function getARequestHandler ( ) {
2033
2033
// TODO: This doesn't handle attribute assignment. Should be OK, but analysis is not as complete as with
2034
2034
// points-to and `.lookup`, which would handle `post = my_post_handler` inside class def
2035
2035
result = this .getAMethod ( ) and
@@ -2076,7 +2076,7 @@ private module Django {
2076
2076
*/
2077
2077
private class DjangoRouteHandler extends Function {
2078
2078
DjangoRouteHandler ( ) {
2079
- exists ( djangoRouteHandlerFunctionTracker ( this ) )
2079
+ exists ( DjangoRouteSetup route | route . getViewArg ( ) = djangoRouteHandlerFunctionTracker ( this ) )
2080
2080
or
2081
2081
any ( DjangoViewClassDef vc ) .getARequestHandler ( ) = this
2082
2082
}
You can’t perform that action at this time.
0 commit comments