sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r660515 - /incubator/sling/trunk/engine/src/main/java/org/apache/sling/engine/impl/parameters/ContainerRequestParameter.java
Date Tue, 27 May 2008 13:42:34 GMT
Author: cziegeler
Date: Tue May 27 06:42:31 2008
New Revision: 660515

URL: http://svn.apache.org/viewvc?rev=660515&view=rev
Log:
SLING-468: Ignore provided encoding and always return the correctly encoded string.

Modified:
    incubator/sling/trunk/engine/src/main/java/org/apache/sling/engine/impl/parameters/ContainerRequestParameter.java

Modified: incubator/sling/trunk/engine/src/main/java/org/apache/sling/engine/impl/parameters/ContainerRequestParameter.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/engine/src/main/java/org/apache/sling/engine/impl/parameters/ContainerRequestParameter.java?rev=660515&r1=660514&r2=660515&view=diff
==============================================================================
--- incubator/sling/trunk/engine/src/main/java/org/apache/sling/engine/impl/parameters/ContainerRequestParameter.java
(original)
+++ incubator/sling/trunk/engine/src/main/java/org/apache/sling/engine/impl/parameters/ContainerRequestParameter.java
Tue May 27 06:42:31 2008
@@ -100,7 +100,8 @@
      */
     public String getString(String encoding)
             throws UnsupportedEncodingException {
-        return new String(this.get(), encoding);
+        // we ignore the provided encoding as we're using the correct encoding anyway :)
+        return value;
     }
 
     /**



Mime
View raw message