jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1214389 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Request.java
Date Wed, 14 Dec 2011 18:11:01 GMT
Author: stefan
Date: Wed Dec 14 18:11:01 2011
New Revision: 1214389

URL: http://svn.apache.org/viewvc?rev=1214389&view=rev
Log:
preserve parameters with empty value, such as "foo="

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Request.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Request.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Request.java?rev=1214389&r1=1214388&r2=1214389&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Request.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Request.java
Wed Dec 14 18:11:01 2011
@@ -242,7 +242,7 @@ class Request implements Closeable {
 
     private static void collectParameters(String s, Map<String,String> map) throws
IOException {
         for (String param : s.split("&")) {
-            String[] nv = param.split("=");
+            String[] nv = param.split("=", 2);
             if (nv.length == 2) {
                 map.put(URLDecoder.decode(nv[0], "UTF-8"), URLDecoder.decode(nv[1], "UTF-8"));
             }



Mime
View raw message