cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: rev 54591 - cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation
Date Mon, 11 Oct 2004 14:30:55 GMT
Author: cziegeler
Date: Mon Oct 11 07:30:55 2004
New Revision: 54591

Modified:
   cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
Log:
Apply patch for bug 29951

Modified: cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
==============================================================================
--- cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
(original)
+++ cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/transformation/CopletTransformer.java
Mon Oct 11 07:30:55 2004
@@ -265,7 +265,9 @@
         } else if ( "html-form".equals(format) ) {
             boolean addParametersAsHiddenFields = false;
             String parameters = null;
-            if ( newAttrs.getValue("enctype") != null )  {
+            final String enctype = newAttrs.getValue("enctype");
+            if ( enctype== null 
+                 || "application/x-www-form-urlencoded".equals(enctype) )  {
                 final int pos = uri.indexOf('?');
                 if ( pos != -1 ) {
                     parameters = uri.substring(pos+1);

Mime
View raw message