File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
java/ql/src/experimental/semmle/code/java Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,12 @@ private class ExactStringPathMatchGuard extends PathTraversalBarrierGuard instan
21
21
}
22
22
23
23
/**
24
- * Returns the qualifier of a method call if it's a variable access, or the qualifier of the qualifier if
25
- * the qualifier itself is a method call to `getPath` , which helps to reduce FPs by handling scenarios
26
- * such as `!uri.getPath().contains("..")`.
24
+ * Returns the qualifier of a method call if it's a variable access, or the qualifier of the qualifier
25
+ * if the qualifier itself is a method call, which helps to reduce FPs by handling scenarios such as
26
+ * `!uri.getPath().contains("..")`.
27
27
*/
28
28
private Expr getRealQualifier ( Expr e ) {
29
- e .( MethodAccess ) .getMethod ( ) .hasQualifiedName ( "android.net" , "Uri" , "getPath" ) and
30
- result = e .( MethodAccess ) .getQualifier ( )
29
+ result = getRealQualifier ( e .( MethodAccess ) .getQualifier ( ) )
31
30
or
32
31
result = e .( VarAccess )
33
32
}
You can’t perform that action at this time.
0 commit comments