Merge "Does safe authority comparison in AppsFilter"

This commit is contained in:
Patrick Baumann
2019-11-05 20:21:48 +00:00
committed by Android (Google) Code Review

View File

@@ -211,7 +211,7 @@ public class AppsFilter {
final Uri data = intent.getData();
if ("content".equalsIgnoreCase(intent.getScheme())
&& data != null
&& providerInfo.authority.equalsIgnoreCase(data.getAuthority())) {
&& Objects.equals(providerInfo.authority, data.getAuthority())) {
return true;
}
}