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:
Robin Schneider 2013-06-14 20:25:57 +02:00
parent 85fc6eafca
commit ff44f7db19

View file

@ -95,7 +95,7 @@ public class EntityParser {
siteUrl = entity.getTag(OSMTagKey.CONTACT_WEBSITE); siteUrl = entity.getTag(OSMTagKey.CONTACT_WEBSITE);
} }
} }
if (siteUrl != null && !siteUrl.startsWith("http://")) { if (siteUrl != null && !siteUrl.startsWith("http://") && !siteUrl.startsWith("https://")) {
siteUrl = "http://" + siteUrl; siteUrl = "http://" + siteUrl;
} }
} }