From ff44f7db19b67aed2f8cd5662ed3b9c43cffe772 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Fri, 14 Jun 2013 20:25:57 +0200 Subject: [PATCH] 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 --- OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java b/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java index 3ad3152395..c18c04a5f1 100644 --- a/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java +++ b/OsmAnd-java/src/net/osmand/osm/edit/EntityParser.java @@ -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; } }