You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.getArgument(0).(VarAccess).getVariable().getAnAssignedValue().(StringLiteral).getRepresentedString().charAt(0)!="."//check variable starts with "."
48
+
this.getArgument(0).(StringLiteral).getRepresentedString().charAt(0)!="."or//string constant comparison e.g. uri.getHost().endsWith("example.com")
49
+
this.getArgument(0).(AddExpr).getLeftOperand().(VarAccess).getVariable().getAnAssignedValue().(StringLiteral).getRepresentedString().charAt(0)!="."or//var1+var2, check var1 starts with "." e.g. String domainName = "example"; Uri.parse(url).getHost().endsWith(domainName+".com")
exists(MethodAccessma|this.getArgument(0)=maandma.getMethod().hasName("getString")andma.getArgument(0).toString().indexOf("R.string")=0)or//Check resource properties in /res/values/strings.xml in Android mobile applications using res.getString(R.string.key)
52
+
this.getArgument(0).(VarAccess).getVariable().getAnAssignedValue().(StringLiteral).getRepresentedString().charAt(0)!="."//check variable starts with "." e.g. String domainName = "example.com"; Uri.parse(url).getHost().endsWith(domainName)
0 commit comments