mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-02-01 02:31:36 -05:00
Fix #211 - don't force every incoming intent to be a repo intent.
This commit is contained in:
@@ -73,6 +73,12 @@ public class NewRepoConfig {
|
||||
uri = Uri.parse(uri.toString().toLowerCase(Locale.ENGLISH));
|
||||
}
|
||||
|
||||
String path = uri.getPath();
|
||||
if (path == null || !(path.contains("/fdroid/archive") || path.contains("/fdroid/repo"))) {
|
||||
isValidRepo = false;
|
||||
return;
|
||||
}
|
||||
|
||||
// make scheme and host lowercase so they're readable in dialogs
|
||||
scheme = scheme.toLowerCase(Locale.ENGLISH);
|
||||
host = host.toLowerCase(Locale.ENGLISH);
|
||||
|
||||
Reference in New Issue
Block a user