@@ -218,7 +218,7 @@ private class FlaskClientSuppliedSecret extends ClientSuppliedSecret {
218
218
private class DjangoClientSuppliedSecret extends ClientSuppliedSecret {
219
219
DjangoClientSuppliedSecret ( ) {
220
220
this =
221
- PrivateDjango:: DjangoImpl:: Http :: Request:: HttpRequest:: classRef ( )
221
+ PrivateDjango:: DjangoImpl:: DjangoHttp :: Request:: HttpRequest:: classRef ( )
222
222
.getMember ( [ "headers" , "META" ] )
223
223
.getMember ( "get" )
224
224
.getACall ( ) and
@@ -316,36 +316,35 @@ class CompareSink extends DataFlow::Node {
316
316
exists ( Compare compare |
317
317
(
318
318
compare .getOp ( 0 ) instanceof Eq or
319
- compare .getOp ( 0 ) instanceof NotEq
319
+ compare .getOp ( 0 ) instanceof NotEq
320
320
) and
321
321
(
322
322
compare .getLeft ( ) = this .asExpr ( ) and
323
- not compare .getComparator ( 0 ) .( StrConst ) .getText ( ) = "bearer"
323
+ not compare .getComparator ( 0 ) .( StrConst ) .getText ( ) = "bearer"
324
324
or
325
325
compare .getComparator ( 0 ) = this .asExpr ( ) and
326
- not compare .getLeft ( ) .( StrConst ) .getText ( ) = "bearer"
326
+ not compare .getLeft ( ) .( StrConst ) .getText ( ) = "bearer"
327
327
)
328
- ) or
329
- exists ( Compare compare |
330
- (
331
- compare .getOp ( 0 ) instanceof IsNot
332
- ) and
328
+ )
329
+ or
330
+ exists ( Compare compare |
331
+ compare .getOp ( 0 ) instanceof IsNot and
333
332
(
334
333
compare .getLeft ( ) = this .asExpr ( ) and
335
334
not compare .getComparator ( 0 ) instanceof None
336
335
or
337
336
compare .getComparator ( 0 ) = this .asExpr ( ) and
338
337
not compare .getLeft ( ) instanceof None
339
- )
340
- )
338
+ )
339
+ )
341
340
}
342
-
343
- /**
344
- * Holds if there is a flow to len().
345
- */
341
+
342
+ /**
343
+ * Holds if there is a flow to len().
344
+ */
346
345
predicate flowtolen ( ) {
347
346
exists ( ExcludeLenFunc config , DataFlow2:: PathNode source , DataFlow2:: PathNode sink |
348
- config .hasFlowPath ( source , sink )
347
+ config .hasFlowPath ( source , sink )
349
348
)
350
349
}
351
350
}
0 commit comments