incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1308317 - /sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp
Date Mon, 02 Apr 2012 12:26:59 GMT
Author: bdelacretaz
Date: Mon Apr  2 12:26:58 2012
New Revision: 1308317

URL: http://svn.apache.org/viewvc?rev=1308317&view=rev
Log:
SLING-2139 - escape resource type to cope with values that contain a slash. Patch contributed
by Robert A. Decker, thanks!

Modified:
    sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp

Modified: sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp?rev=1308317&r1=1308316&r2=1308317&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp
(original)
+++ sling/trunk/bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp
Mon Apr  2 12:26:58 2012
@@ -143,7 +143,7 @@
     </div>
     <div>
       <%
-        sling.include( path + ".explorer.edit."+ (resourceType == null ? '' : (resourceType.replace(':',
'_') + '.') ) + "html" ); 
+        sling.include( path + ".explorer.edit."+ (resourceType == null ? '' : (resourceType.replace(':',
'_').replace('/', '_') + '.') ) + "html" ); 
       %>
     </div>
 <script type="text/javascript">
@@ -349,4 +349,4 @@ function create_multivalueinput_for_type
     <% 
         }
     }
-    %>
\ No newline at end of file
+    %>



Mime
View raw message