Skip to content

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

Fix for refactoring introduced in https://github.com/yacy/yacy_search_server/commit/8451cfdef8f3e40cb866c4ee74fbf21d73325136 As mentioned in https://github.com/yacy/yacy_search_server/issues/687#issuecomment-3368449331

Michael Peter Christen01122f678402
diff --git a/source/net/yacy/htroot/QuickCrawlLink_p.java b/source/net/yacy/htroot/QuickCrawlLink_p.java
index 3f12dd486..e78557c98 100644
--- a/source/net/yacy/htroot/QuickCrawlLink_p.java
+++ b/source/net/yacy/htroot/QuickCrawlLink_p.java
@@ -86,7 +86,7 @@ public class QuickCrawlLink_p {
// get the URL
String crawlingStart = post.get("url", "");
- if (crawlingStart.length() == 0) {
+ if (crawlingStart.length() != 0) {
prop.put("mode", "1");
crawlingStart = UTF8.decodeURL(crawlingStart);
@@ -95,7 +95,7 @@ public class QuickCrawlLink_p {
// get the browser title
String title = post.get("title", "");
- if (title.length() == 0) {
+ if (title.length() != 0) {
title = crawlingStart;
/* Decode eventual special(non ASCII) characters in title */
title = UTF8.decodeURL(title);