Author: cziegeler
Date: Wed Aug  6 23:48:07 2008
New Revision: 683525

URL: http://svn.apache.org/viewvc?rev=683525&view=rev
Log:
SLING-603: Make code even 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=683525&r1=683524&r2=683525&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 23:48:07 2008
@@ -541,11 +541,7 @@
      */
     private String toPropertyPath(String paramName, HtmlResponse response) {
         if (!paramName.startsWith("/")) {
-            if ( 
paramName.startsWith(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT) ) {
-                paramName = response.getPath() + '/' + 
paramName.substring(SlingPostConstants.ITEM_PREFIX_RELATIVE_CURRENT.length());
-            } else {
-                paramName = response.getPath() + '/' + paramName;
-            }
+            paramName = ResourceUtil.normalize(response.getPath() + '/' + 
paramName);
         }
 
         return paramName;


Reply via email to