From 6c91921e9bab31321c3be32087d07df6aeb659da Mon Sep 17 00:00:00 2001 From: low012 Date: Sun, 18 Dec 2005 21:24:55 +0000 Subject: [PATCH] *) yacyWiki: more versatile distinction between real external links/links that point to DATA/HTDOC git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1232 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/wikiCode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/data/wikiCode.java b/source/de/anomic/data/wikiCode.java index c610750c7..247f2cc2a 100644 --- a/source/de/anomic/data/wikiCode.java +++ b/source/de/anomic/data/wikiCode.java @@ -353,7 +353,7 @@ public class wikiCode { // 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/HTDOCS - if (!((kl.startsWith("http://"))||(kl.startsWith("ftp://")))) { + if (!((kl.indexOf("://"))>=0)) { kl = "http://" + yacyCore.seedDB.mySeed.getAddress().trim() + "/" + kl; } @@ -395,7 +395,7 @@ public class wikiCode { // using the wikicode [share/page.html] // or a file DATA/HTDOCS/www/page.html with [www/page.html] // you are free to use other sub-paths of DATA/HTDOCS - if (!((kl.startsWith("http://"))||(kl.startsWith("ftp://")))) { + if (!((kl.indexOf("://"))>=0)) { kl = "http://" + yacyCore.seedDB.mySeed.getAddress().trim() + "/" + kl; } result = result.substring(0, p0) + "" + kv + "" + result.substring(p1 + 1);