File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -298,8 +298,8 @@ private class PathNormalizeSanitizer extends MethodAccess {
298
298
* what `getQualifier` actually gets in Java and Kotlin.
299
299
*/
300
300
private Expr getVisualQualifier ( MethodAccess ma ) {
301
- if getSourceMethod ( ma .getMethod ( ) ) instanceof ExtensionMethod
302
- then result = ma .getArgument ( 0 )
301
+ if ma .getMethod ( ) instanceof ExtensionMethod
302
+ then result = ma .getArgument ( ma . getMethod ( ) . ( ExtensionMethod ) . getExtensionParameterIndex ( ) )
303
303
else result = ma .getQualifier ( )
304
304
}
305
305
@@ -310,8 +310,10 @@ private Expr getVisualQualifier(MethodAccess ma) {
310
310
*/
311
311
bindingset [ argPos]
312
312
private Argument getVisualArgument ( MethodAccess ma , int argPos ) {
313
- if getSourceMethod ( ma .getMethod ( ) ) instanceof ExtensionMethod
314
- then result = ma .getArgument ( argPos + 1 )
313
+ if ma .getMethod ( ) instanceof ExtensionMethod
314
+ then
315
+ result =
316
+ ma .getArgument ( argPos + ma .getMethod ( ) .( ExtensionMethod ) .getExtensionParameterIndex ( ) + 1 )
315
317
else result = ma .getArgument ( argPos )
316
318
}
317
319
You can’t perform that action at this time.
0 commit comments