From eb97bed1df9cd286a253cf84f3f69c47d69d3f42 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 13 Aug 2010 13:06:06 +0000 Subject: [PATCH] patch for http://forum.yacy-websuche.de/viewtopic.php?p=20576#p20576 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7036 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/server/HTTPDemon.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);