File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
python/ql/lib/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -621,15 +621,12 @@ module AiohttpWebModel {
621
621
DataFlow:: Node value ;
622
622
623
623
AiohttpResponseCookieSubscriptWrite ( ) {
624
- exists ( SubscriptNode subscript |
624
+ exists ( API:: Node i |
625
+ value = aiohttpResponseInstance ( ) .getMember ( "cookies" ) .getSubscriptAt ( i ) .asSink ( ) and
626
+ index = i .asSink ( ) and
625
627
// To give `this` a value, we need to choose between either LHS or RHS,
626
- // and just go with the LHS
627
- this .asCfgNode ( ) = subscript
628
- |
629
- subscript .getObject ( ) =
630
- aiohttpResponseInstance ( ) .getMember ( "cookies" ) .getAValueReachableFromSource ( ) .asCfgNode ( ) and
631
- value .asCfgNode ( ) = subscript .( DefinitionNode ) .getValue ( ) and
632
- index .asCfgNode ( ) = subscript .getIndex ( )
628
+ // and just go with the RHS as it is readily available
629
+ this = value
633
630
)
634
631
}
635
632
You can’t perform that action at this time.
0 commit comments