Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for http://mantis.tokeek.de/view.php?id=467
Michael Peter Christen805a95a98b40
diff --git a/htroot/opensearchdescription.java b/htroot/opensearchdescription.javaindex 797d3fa4b..8f576acd5 100644--- a/htroot/opensearchdescription.java+++ b/htroot/opensearchdescription.java@@ -41,11 +41,14 @@ public class opensearchdescription {String thisaddress = header.get("Host", Domains.LOCALHOST);if (thisaddress.indexOf(':',0) == -1) thisaddress += ":" + env.getConfig("port", "8090");-+ String thisprotocol = env.getConfigBool("server.https", false) ? "https" : "http";+final serverObjects prop = new serverObjects();prop.put("compareyacy", post != null && post.getBoolean("compare_yacy") ? 1 : 0);- prop.putXML("compareyacy_thisaddress", thisaddress);prop.putXML("thisaddress", thisaddress);+ prop.putXML("compareyacy_thisaddress", thisaddress);+ prop.putXML("thisprotocol", thisprotocol);+ prop.putXML("compareyacy_thisprotocol", thisprotocol);prop.putXML("SearchPageGreeting", promoteSearchPageGreeting);prop.putXML("clientname", sb.peers.mySeed().getName());prop.putXML("compareyacy_search_left", post == null ? compare_yacy.defaultsearchL : post.get("left", compare_yacy.defaultsearchL));diff --git a/htroot/opensearchdescription.xml b/htroot/opensearchdescription.xmlindex 4d8a61c17..1274f6678 100644--- a/htroot/opensearchdescription.xml+++ b/htroot/opensearchdescription.xml@@ -4,7 +4,7 @@xmlns:suggestions="http://www.opensearch.org/specifications/opensearch/extensions/suggestions/1.1"><ShortName>#(compareyacy)#::Compare #(/compareyacy)#YaCy/#[clientname]#</ShortName><LongName>YaCy.net - #[SearchPageGreeting]#</LongName>- <Image type="image/gif">http://#[thisaddress]#/env/grafics/yacy.png</Image>+ <Image type="image/gif">#[thisprotocol]#://#[thisaddress]#/env/grafics/yacy.png</Image><Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAAAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////Chiu+fBm+fRq+fRq+fRq+fRq+fRq8ehXMmk////////////////////////////++exjUqGfZsnjYsXbYsXbYsXbZsnjTp2W+fBr///////////////////////////+9exfs2r/69/L58+z58+z58+z59e/z59bChSn///////////////////////////+9fBnnz638+fX69O369e748un38Ob59O3Ll0fVrGz////////////////////////Jk0HJlUjXuYrWt4jVtYPr28T58+r59OzPn1fPnlX////////////////////////Rolu8eRXCiTPEjTvCijbNnlj169359e7Zs3vLlkf////////////////////////UqmrAgSLt3MP27eH1693169327+T59Ozo0rG/gB////////////////////////////+/gCDv4Mn48+v38Of59Oz58+v48+vr2b2+fRv///////////////////////////+9ehXr17n58+z48ejo0bDp07T48+zx49DBhCj///////////////////////////+/fhzjyJ/59Oz59OzQoVvNmU759Oz58+vKlUbXrnH////////////////////////LlkfUqmn59Oz48+vZtHzNm1D48+v59OzPoFjOnlX////////////////////////OnVPOnFL59e348+vq1rnEiC7u38j69vDXsHTIkT3////////////////////////UqWjIkD327+T58+3s2bzAgSLp07T79/Pmzqq+fBn///////////////////////////+/fx7v4Mr7+PTx5NDHkD3kyqP8+vjs2r+9exf///////////////////////////++fBjQoFnVq2zTp2bGjTjJk0LWrW7SpWC+exf////////////////////////////Nm1C6dQy7eBG8eBK9exe8ehS7dxC6dQzLlkj////////////AH///wB8x+sAf///AD/+PwA///8AP///AD///4A9PU+APoz/gB///4AdxvOAHoz/gB3368AfjU/AHT1PwB/+P</Image><Language>en-us</Language>@@ -13,19 +13,19 @@<AdultContent>true</AdultContent><Description>YaCy is an open-source GPL-licensed software that can be used for stand-alone search engine installations or as a client for a multi-user P2P-based web indexing cluster. This is the access to peer '#[clientname]#'.</Description>#(compareyacy)#- <Url type="text/html" method="GET" template="http://#[thisaddress]#/yacysearch.html?query={searchTerms}&startRecord={startIndex?}&maximumRecords={count?}&nav=all&resource=global" />- <Url type="application/rss+xml" method="GET" template="http://#[thisaddress]#/yacysearch.rss?nav=&query={searchTerms}&startRecord={startIndex?}&maximumRecords={count?}&nav=all&resource=global" />- <Url type="application/atom+xml" method="GET" template="http://#[thisaddress]#/yacysearch.atom?query={searchTerms}&startRecord={startIndex?}&maximumRecords={count?}&resource=global" />+ <Url type="text/html" method="GET" template="#[thisprotocol]#://#[thisaddress]#/yacysearch.html?query={searchTerms}&startRecord={startIndex?}&maximumRecords={count?}&nav=all&resource=global" />+ <Url type="application/rss+xml" method="GET" template="#[thisprotocol]#://#[thisaddress]#/yacysearch.rss?nav=&query={searchTerms}&startRecord={startIndex?}&maximumRecords={count?}&nav=all&resource=global" />+ <Url type="application/atom+xml" method="GET" template="#[thisprotocol]#://#[thisaddress]#/yacysearch.atom?query={searchTerms}&startRecord={startIndex?}&maximumRecords={count?}&resource=global" />::<Url type="text/html" method="GET" template="http://#[thisaddress]#/compare_yacy.html?query={searchTerms}&left=#[search_left]#&right=#[search_right]#&display=2" />#(/compareyacy)#- <Url type="application/x-suggestions+json" template="http://#[thisaddress]#/suggest.json?query={searchTerms}"/>- <Url type="application/x-suggestions+xml" template="http://#[thisaddress]#/suggest.xml?query={searchTerms}"/>+ <Url type="application/x-suggestions+json" template="#[thisprotocol]#://#[thisaddress]#/suggest.json?query={searchTerms}"/>+ <Url type="application/x-suggestions+xml" template="#[thisprotocol]#://#[thisaddress]#/suggest.xml?query={searchTerms}"/><!-- syntax according to http://www.loc.gov/standards/sru/. Set verify=true to get snippets in the search results --><Developer>See https://gitorious.org/+yacy-developers</Developer><Query role="example" searchTerms="yacy+free+software" /><Tags>YaCy Free Software Open Source P2P Peer-to-Peer Uncensored Distributed Web Search Engine</Tags>- <Contact>See http://#[thisaddress]#/ViewProfile.html?hash=localhash</Contact>+ <Contact>See #[thisprotocol]#://#[thisaddress]#/ViewProfile.html?hash=localhash</Contact><Attribution>http://yacy.net YaCy Software &copy; 2004-2014 by Michael Christen et al., YaCy.net; Content: ask peer owner</Attribution><SyndicationRight>open</SyndicationRight></OpenSearchDescription>