Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixing/changing wiki image inline code for local images hosted within DATA/HTDOCS
orbiterc4dd39e8f292
diff --git a/source/de/anomic/data/wikiCode.java b/source/de/anomic/data/wikiCode.javaindex 49223d6d1..c1f3f80df 100644--- a/source/de/anomic/data/wikiCode.java+++ b/source/de/anomic/data/wikiCode.java@@ -348,11 +348,13 @@ public class wikiCode {alt = " alt=\"" + kv + "\"";}- // replace incomplete URLs and make them point to http://peerip:port/share/...+ // replace incomplete URLs and make them point to http://peerip:port/...+ // with this feature you can acces an image in DATA/HTDOCS/share/yacy.gif+ // using the wikicode [[Image:share/yacy.gif]]+ // or an image DATA/HTDOCS/grafics/kaskelix.jpg with [[Image:grafics/kaskelix.jpg]]+ // you are free to use other sub-paths of DATA/HTDOCSif (!((kl.startsWith("http://"))||(kl.startsWith("ftp://")))) {- final String ip = yacyCore.seedDB.mySeed.getAddress().trim();- final String port = sb.getConfig("port", "8080").trim();- kl = "http://" + ip + ":" + port + "/share/" + kl;+ kl = "http://" + yacyCore.seedDB.mySeed.getAddress().trim() + "/" + kl;}result = result.substring(0, p0) + "<img src=\"" + kl + "\"" + align.trim() + alt.trim() + ">" + result.substring(p1 + 2);