File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
ruby/ql/lib/codeql/ruby/frameworks/rack/internal Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,7 @@ private class PotentialRequestHandler extends DataFlow::CallableNode {
1818 (
1919 this .( DataFlow:: MethodNode ) .getMethodName ( ) = "call"
2020 or
21- not this instanceof DataFlow:: MethodNode and
22- exists ( DataFlow:: CallNode cn | cn .getMethodName ( ) = "run" |
23- this .( DataFlow:: LocalSourceNode ) .flowsTo ( cn .getArgument ( 0 ) )
24- or
25- // TODO: `Proc.new` should automatically propagate flow from its block argument
26- any ( DataFlow:: CallNode proc |
27- proc = API:: getTopLevelMember ( "Proc" ) .getAnInstantiation ( ) and
28- proc .getBlock ( ) = this
29- ) .( DataFlow:: LocalSourceNode ) .flowsTo ( cn .getArgument ( 0 ) )
30- )
21+ this = API:: getTopLevelCall ( "run" ) .getArgument ( 0 ) .asCallable ( )
3122 )
3223 }
3324}
You can’t perform that action at this time.
0 commit comments