Skip to content

Commit 179f77b

Browse files
committed
python: clearer comment
1 parent 778a88f commit 179f77b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/lib/semmle/python/frameworks/Django.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,8 @@ module PrivateDjango {
23372337
// Notice that this does not ensure that this is not a FP, since the authentication
23382338
// middleware might be unused.
23392339
//
2340-
// This also strongly implies that we are actually looking at the `MIDDLEWARE` setting.
2340+
// This also strongly implies that `mw` is in fact a Django middleware setting and
2341+
// not just a variable named `MIDDLEWARE`.
23412342
list.getAnElt().(StrConst).getText() =
23422343
"django.contrib.auth.middleware.AuthenticationMiddleware"
23432344
)

0 commit comments

Comments
 (0)