You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by cd...@apache.org on 2007/07/24 01:07:39 UTC
svn commit: r558892 -
/portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
Author: cdoremus
Date: Mon Jul 23 16:07:37 2007
New Revision: 558892
URL: http://svn.apache.org/viewvc?view=rev&rev=558892
Log:
Applied patch submitted in PLUTO-396. Thank you Ajay!
Modified:
portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
Modified: portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java?view=diff&rev=558892&r1=558891&r2=558892
==============================================================================
--- portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java (original)
+++ portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/url/impl/PortalURLParserImpl.java Mon Jul 23 16:07:37 2007
@@ -57,6 +57,8 @@
private static final String PORTLET_MODE = "pm";
private static final String VALUE_DELIM = "0x0";
+ //This is a list of characters that need to be encoded to be protected
+ //The ? is necessary to protect URI's with a query portion that is being passed as a parameter
private static final String[][] ENCODINGS = new String[][] {
new String[] { "_", "0x1" },
new String[] { ".", "0x2" },
@@ -67,6 +69,9 @@
new String[] { ">", "0x7" },
new String[] { " ", "0x8" },
new String[] { "#", "0x9" },
+ new String[] { "?", "0xa" },
+ new String[] { "\\", "0xb" },
+ new String[] { "%", "0xc" },
};
// Constructor -------------------------------------------------------------