Skip to content

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

fixed bad usage of given words

Michael Peter Christen4298f00d2d16
diff --git a/htroot/IndexControlRWIs_p.java b/htroot/IndexControlRWIs_p.java
index c87f244c9..2a2e406d6 100644
--- a/htroot/IndexControlRWIs_p.java
+++ b/htroot/IndexControlRWIs_p.java
@@ -126,7 +126,7 @@ public class IndexControlRWIs_p
final String keystring = post.get("keystring", "").trim();
byte[] keyhash = post.get("keyhash", "").trim().getBytes();
- if (keyhash == null || keyhash.length == 0) {
+ if (keystring.length() > 0) {
keyhash = Word.word2hash(keystring);
}
prop.putHTML("keystring", keystring);