Skip to content

Commit

Permalink
*) Bugfix for url.toString problem in yacyClient crawlOrder
Browse files Browse the repository at this point in the history
   Thanks to Stephan for the advice

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1737 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Feb 22, 2006
1 parent bdd9287 commit 468ca5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/de/anomic/yacy/yacyClient.java
Expand Up @@ -747,8 +747,8 @@ public static HashMap crawlOrder(yacySeed targetSeed, URL[] url, URL[] referrer)
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()));
Expand Down

0 comments on commit 468ca5b

Please sign in to comment.