Merge "Implement wildcard-host policy in reference autoVerify implementation" into nyc-dev
am: 737a1c1053
* commit '737a1c10534ff4181304611e3d0d11961fc7b929':
Implement wildcard-host policy in reference autoVerify implementation
This commit is contained in:
@@ -106,6 +106,10 @@ public final class IntentFilterVerificationReceiver extends BroadcastReceiver {
|
||||
try {
|
||||
ArrayList<String> sourceAssets = new ArrayList<String>();
|
||||
for (String host : hostList) {
|
||||
// "*.example.tld" is validated via https://example.tld
|
||||
if (host.startsWith("*.")) {
|
||||
host = host.substring(2);
|
||||
}
|
||||
sourceAssets.add(createWebAssetString(scheme, host));
|
||||
}
|
||||
extras.putStringArrayList(DirectStatementService.EXTRA_SOURCE_ASSET_DESCRIPTORS,
|
||||
|
||||
Reference in New Issue
Block a user