Hi,cocooners:

The patch is for cocoon 2.1.x,I just copy the code from getParameter to
getParameterValues. Maybe this patch is useful for cocoon 2.2 too.

Roy Huang
### Eclipse Workspace Patch 1.0
#P dojo1_1
Index: src/java/org/apache/cocoon/environment/http/HttpRequest.java
===================================================================
--- src/java/org/apache/cocoon/environment/http/HttpRequest.java        
(revision 723299)
+++ src/java/org/apache/cocoon/environment/http/HttpRequest.java        
(working copy)
@@ -353,9 +353,12 @@
     public String[] getParameterValues(String name) {
         String[] values = this.req.getParameterValues(name);
         if (values == null) return null;
-        if (this.form_encoding == null) {
+        if (this.form_encoding == null || this.container_encoding == null) {
             return values;
         }
+        if (this.container_encoding.equals(this.form_encoding)) {
+               return values;
+        }
         String[] decoded_values = new String[values.length];
         for (int i = 0; i < values.length; ++i) {
             decoded_values[i] = decode(values[i]);

Reply via email to