Skip to content

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

*) Bugfix for url.toString problem in yacyClient crawlOrder Thanks to Stephan for the advice

theli468ca5b0e6ee
diff --git a/source/de/anomic/yacy/yacyClient.java b/source/de/anomic/yacy/yacyClient.java
index 662647738..d1bb435e2 100644
--- a/source/de/anomic/yacy/yacyClient.java
+++ b/source/de/anomic/yacy/yacyClient.java
@@ -747,8 +747,8 @@ public final class yacyClient {
post.put("youare", targetSeed.hash);
post.put(yacySeed.MYTIME, yacyCore.universalDateShortString(new Date()));
if (url.length == 1) {
- post.put("url", crypt.simpleEncode(url.toString()));
- post.put("referrer", crypt.simpleEncode((referrer == null) ? "" : referrer.toString()));
+ post.put("url", crypt.simpleEncode(url[0].toString()));
+ post.put("referrer", crypt.simpleEncode((referrer[0] == null) ? "" : referrer[0].toString()));
} else {
for (int i=0; i< url.length; i++) {
post.put("url" + i, crypt.simpleEncode(url[i].toString()));