Skip to content

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

patch for http://forum.yacy-websuche.de/viewtopic.php?p=20576#p20576

orbitereb97bed1df9c
diff --git a/source/de/anomic/http/server/HTTPDemon.java b/source/de/anomic/http/server/HTTPDemon.java
index 4b3177f3d..ea318a96b 100644
--- a/source/de/anomic/http/server/HTTPDemon.java
+++ b/source/de/anomic/http/server/HTTPDemon.java
@@ -687,8 +687,9 @@ public final class HTTPDemon implements serverHandler, Cloneable {
// Textfield1=default+value+Textfield+1&Textfield2=default+value+Textfield+2&selection1=sel1&selection2=othervalue1&selection2=sel2&selection3=sel3&Menu1=SubEnry11&radio1=button1&check1=button2&check1=button3&hidden1=&sButton1=enter+%281%29
while (argsString.length() > 0) {
eqp = argsString.indexOf('=');
- sep = argsString.indexOf('&');
- if ((eqp <= 0) || (sep <= 0)) break;
+ if (eqp <= 0) break;
+ sep = argsString.indexOf('&', eqp + 1);
+ if (sep <= 0) break;
// resulting equations are inserted into the property args with leading '&'
args.put(parseArg(argsString.substring(0, eqp)), parseArg(argsString.substring(eqp + 1, sep)));
argsString = argsString.substring(sep + 1);