incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r683256 - /incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
Date Wed, 06 Aug 2008 13:13:28 GMT
Author: cziegeler
Date: Wed Aug  6 06:13:26 2008
New Revision: 683256

URL: http://svn.apache.org/viewvc?rev=683256&view=rev
Log:
SLING-603: Make code better looking :)

Modified:
    incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java

Modified: incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java?rev=683256&r1=683255&r2=683256&view=diff
==============================================================================
--- incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
(original)
+++ incubator/sling/trunk/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java
Wed Aug  6 06:13:26 2008
@@ -542,9 +542,9 @@
     private String toPropertyPath(String paramName, HtmlResponse response) {
         if (!paramName.startsWith("/")) {
             if ( paramName.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT) )
{
-                paramName = response.getPath() + paramName.substring(1);
+                paramName = response.getPath() + '/' + paramName.substring(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT.length());
             } else {
-                paramName = response.getPath() + "/" + paramName;
+                paramName = response.getPath() + '/' + paramName;
             }
         }
 



Mime
View raw message