File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -303,28 +303,22 @@ private module JQueryClientRequest {
303
303
.getParameter ( 0 ) )
304
304
or
305
305
result = getAnAjaxCallbackDataNode ( this )
306
- or
307
- result = getAResponseNodeFromAnXHRObject ( getAnXHRObject ( this ) )
308
306
)
309
307
}
310
308
}
311
309
312
310
/**
313
- * Gets a response data node from a call to a method on jqXHR Object.
311
+ * Gets a response data node from a call to a method on jqXHR Object `request` .
314
312
*/
315
313
private DataFlow:: Node getAnAjaxCallbackDataNode ( ClientRequest:: Range request ) {
316
314
result =
317
315
request
318
316
.getAMemberCall ( any ( string s | s = "done" or s = "then" ) )
319
317
.getCallback ( 0 )
320
318
.getParameter ( 0 )
321
- }
322
-
323
- /**
324
- * Gets a `jqXHR` object from a call to the `fail(..)` method on jqXHR Object.
325
- */
326
- private DataFlow:: SourceNode getAnXHRObject ( ClientRequest:: Range request ) {
327
- result = request .getAMemberCall ( "fail" ) .getCallback ( 0 ) .getParameter ( 0 )
319
+ or
320
+ result =
321
+ getAResponseNodeFromAnXHRObject ( request .getAMemberCall ( "fail" ) .getCallback ( 0 ) .getParameter ( 0 ) )
328
322
}
329
323
330
324
/**
@@ -400,8 +394,6 @@ private module JQueryClientRequest {
400
394
result = getCallback ( [ getNumArgument ( ) - 2 .. getNumArgument ( ) - 1 ] ) .getParameter ( 0 )
401
395
or
402
396
result = getAnAjaxCallbackDataNode ( this )
403
- or
404
- result = getAResponseNodeFromAnXHRObject ( getAnXHRObject ( this ) )
405
397
)
406
398
}
407
399
}
You can’t perform that action at this time.
0 commit comments