incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r900411 - /sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/impl/DefaultPortalURLFactory.java
Date Mon, 18 Jan 2010 14:41:26 GMT
Author: cziegeler
Date: Mon Jan 18 14:41:26 2010
New Revision: 900411

URL: http://svn.apache.org/viewvc?rev=900411&view=rev
Log:
Decode special parameters only once.

Modified:
    sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/impl/DefaultPortalURLFactory.java

Modified: sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/impl/DefaultPortalURLFactory.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/impl/DefaultPortalURLFactory.java?rev=900411&r1=900410&r2=900411&view=diff
==============================================================================
--- sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/impl/DefaultPortalURLFactory.java
(original)
+++ sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/impl/DefaultPortalURLFactory.java
Mon Jan 18 14:41:26 2010
@@ -17,7 +17,6 @@
 package org.apache.sling.portal.container.internal.impl;
 
 import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
 import java.net.URLEncoder;
 import java.util.Iterator;
 import java.util.Map;
@@ -108,12 +107,7 @@
     }
 
     private String decodeValue(final String value) {
-        try {
-            return URLDecoder.decode(value, "UTF-8").replace(DELIM_ENC, DELIM);
-        } catch (UnsupportedEncodingException e) {
-            // this should never happen, but we gracefully return just the value
-            return value;
-        }
+        return value.replace(DELIM_ENC, DELIM);
     }
 
     private String encodeValue(final String value) {



Mime
View raw message