geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1332927 - /geronimo/server/branches/3.0-beta/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
Date Wed, 02 May 2012 06:38:33 GMT
Author: xiaming
Date: Wed May  2 06:38:33 2012
New Revision: 1332927

URL: http://svn.apache.org/viewvc?rev=1332927&view=rev
Log:
GERONIMO-6340 transform %7c back to | when writing back URL in a form to work around IE URL
length limitation

Modified:
    geronimo/server/branches/3.0-beta/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java

Modified: geronimo/server/branches/3.0-beta/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0-beta/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java?rev=1332927&r1=1332926&r2=1332927&view=diff
==============================================================================
--- geronimo/server/branches/3.0-beta/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
(original)
+++ geronimo/server/branches/3.0-beta/plugins/console/console-portal-driver/src/main/java/org/apache/geronimo/console/filter/PlutoURLRebuildFilter.java
Wed May  2 06:38:33 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='");



Mime
View raw message