Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Use https rather than http in links and queries to openstreetmap.org
luccioman3e8dd902111f
diff --git a/htroot/yacysearch.html b/htroot/yacysearch.htmlindex 50ef06494..f4c7214b9 100644--- a/htroot/yacysearch.html+++ b/htroot/yacysearch.html@@ -186,12 +186,12 @@ document.getElementById("Enter").innerHTML = "search again";<a href="osm.png?lon=#[lon]#&lat=#[lat]#&zoom=14" class="thumblink" style="float:left;" onclick="return hs.expand(this)"><img src="osm.png?lon=#[lon]#&lat=#[lat]#&zoom=14" width="192" height="192" alt="map #[lon]#, #[lat]#" /></a>- <div class="TableCellDark"><a href="http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">#[name]#</a><br /><a href="http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">lat=#[lat]#, lon=#[lon]#</a></div> <!-- preview -->- <div class="highslide-caption"><a href="http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">#[name]#</a><br /><a href="http://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">lat=#[lat]#, lon=#[lon]#</a></div> <!-- zoomed -->+ <div class="TableCellDark"><a href="https://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">#[name]#</a><br /><a href="https://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">lat=#[lat]#, lon=#[lon]#</a></div> <!-- preview -->+ <div class="highslide-caption"><a href="https://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">#[name]#</a><br /><a href="https://www.openstreetmap.org/?lat=#[lat]#&lon=#[lon]#&zoom=14">lat=#[lat]#, lon=#[lon]#</a></div> <!-- zoomed --></div>#{/loc}#</p>- <p class="urlinfo" style="clear:left;">Map (c) by <a href="http://www.openstreetmap.org">OpenStreetMap</a> and contributors, CC-BY-SA</p>+ <p class="urlinfo" style="clear:left;">Map (c) by <a href="https://www.openstreetmap.org">OpenStreetMap</a> and contributors, CC-BY-SA</p></div>#(/geoinfo)#diff --git a/source/net/yacy/peers/graphics/OSMTile.java b/source/net/yacy/peers/graphics/OSMTile.javaindex ecb240e9c..019e9da0a 100644--- a/source/net/yacy/peers/graphics/OSMTile.java+++ b/source/net/yacy/peers/graphics/OSMTile.java@@ -152,7 +152,7 @@ public class OSMTile {// see http://wiki.openstreetmap.org/wiki/Slippy_map_tilenamesfinal int hash = (this.xtile + 7 * this.ytile + 13 * this.zoom + retry) % 4;final String host = (hash == 3) ? "tile.openstreetmap.org" : ((char) ('a' + hash)) + ".tile.openstreetmap.org";- final String url = "http://" + host + "/" + this.zoom + "/" + this.xtile + "/" + this.ytile + ".png";+ final String url = "https://" + host + "/" + this.zoom + "/" + this.xtile + "/" + this.ytile + ".png";//System.out.println("OSM URL = " + url);return url;}