Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Fixed links and images. (http://www.yacy-forum.de/viewtopic.php?p=20908#20908)

low01235f9418117c2
diff --git a/source/de/anomic/data/wikiCode.java b/source/de/anomic/data/wikiCode.java
index 7e34669ee..1c0653d6e 100644
--- a/source/de/anomic/data/wikiCode.java
+++ b/source/de/anomic/data/wikiCode.java
@@ -690,7 +690,7 @@ public class wikiCode {
// are there any arguments for the image?
if ((p = kl.indexOf("|")) > 0) {
- kv = kl.substring(p + 1);
+ kv = kl.substring(p + 6);
kl = kl.substring(0, p);
// if there are 2 arguments, write them into ALIGN and ALT
if ((p = kv.indexOf("|")) > 0) {
@@ -707,7 +707,7 @@ public class wikiCode {
align = " align=\"" + align + "\"";
}
else align = "";
- alt = " alt=\"" + kv.substring(p + 1) + "\"";
+ alt = " alt=\"" + kv.substring(p + 6) + "\"";
}
// if there is just one, put it into ALT
else
@@ -730,7 +730,7 @@ public class wikiCode {
// if it's no image, it might be an internal link
else {
if ((p = kl.indexOf("|")) > 0) {
- kv = kl.substring(p + 1);
+ kv = kl.substring(p + 6);
kl = kl.substring(0, p);
} else {
kv = kl;