File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
javascript/ql/src/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -221,20 +221,16 @@ module CleartextLogging {
221
221
/**
222
222
* Holds if `name` is filtered by e.g. a regular-expression test or a filter call.
223
223
*/
224
- private predicate isFilteredPropertyName ( DataFlow:: Node name ) {
224
+ private predicate isFilteredPropertyName ( DataFlow:: SourceNode name ) {
225
225
exists ( DataFlow:: MethodCallNode reduceCall |
226
- reduceCall .getABoundCallbackParameter ( 0 , 1 ) . flowsTo ( name ) and
227
- reduceCall .getMethodName ( ) = "reduce"
226
+ reduceCall .getMethodName ( ) = "reduce" and
227
+ reduceCall .getABoundCallbackParameter ( 0 , 1 ) = name
228
228
|
229
229
reduceCall .getReceiver + ( ) .( DataFlow:: MethodCallNode ) .getMethodName ( ) = "filter"
230
230
)
231
231
or
232
- exists ( StringOps:: RegExpTest test |
233
- test .getStringOperand ( ) .getALocalSource ( ) = name .getALocalSource ( )
234
- )
232
+ exists ( StringOps:: RegExpTest test | test .getStringOperand ( ) .getALocalSource ( ) = name )
235
233
or
236
- exists ( MembershipCandidate test |
237
- test .getAMemberNode ( ) .getALocalSource ( ) = name .getALocalSource ( )
238
- )
234
+ exists ( MembershipCandidate test | test .getAMemberNode ( ) .getALocalSource ( ) = name )
239
235
}
240
236
}
You can’t perform that action at this time.
0 commit comments