Author: xiaming
Date: Wed May 2 06:39:14 2012
New Revision: 1332928
URL: http://svn.apache.org/viewvc?rev=1332928&view=rev
Log:
GERONIMO-6340 transform %7c back to | when writing back URL in a form to work around IE URL
length limitation, for trunk
Modified:
geronimo/server/trunk/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
Modified: geronimo/server/trunk/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java?rev=1332928&r1=1332927&r2=1332928&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
(original)
+++ geronimo/server/trunk/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
Wed May 2 06:39:14 2012
@@ -113,7 +113,14 @@ public class PlutoURLRebuildFilter imple
// For IE could not handler the url of the length more than 2048
// Currently we only handler the location is begin with '/', which means that
it should be an absolute path
// For the location does not contain the http://server:port/, we use 1900 instead
of 2048
+
+ location = location.replaceAll("%7C", "|");
+
if (location.charAt(0) == '/' && location.length() > 1900) {
+
+ if (location.endsWith("?"))
+ location = location.substring(0, location.length()-1);
+
PrintWriter writer = getWriter();
writer
.write("<html><head></head><body onload='document.hform.submit()'><form
name='hform' method='POST' action='");
|