Fixed problem with https in tags.
If for example the website tag starts with https:// then it appeared in OsmAnd as http://https:// https is not that unusual: http://taginfo.openstreetmap.org/keys/website#values http://taginfo.openstreetmap.org/keys/contact:website#values
This commit is contained in:
parent
85fc6eafca
commit
ff44f7db19
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ public class EntityParser {
|
|||
siteUrl = entity.getTag(OSMTagKey.CONTACT_WEBSITE);
|
||||
}
|
||||
}
|
||||
if (siteUrl != null && !siteUrl.startsWith("http://")) {
|
||||
if (siteUrl != null && !siteUrl.startsWith("http://") && !siteUrl.startsWith("https://")) {
|
||||
siteUrl = "http://" + siteUrl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue