[pal-cvs 3252] [986] normalized path.

svnno****@sourc***** svnno****@sourc*****
2008年 6月 15日 (日) 07:34:51 JST


Revision: 986
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=986
Author:   shinsuke
Date:     2008-06-15 07:34:51 +0900 (Sun, 15 Jun 2008)

Log Message:
-----------
normalized path.

Modified Paths:
--------------
    pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java


-------------- next part --------------
Modified: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java
===================================================================
--- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java	2008-06-13 23:07:27 UTC (rev 985)
+++ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java	2008-06-14 22:34:51 UTC (rev 986)
@@ -98,7 +98,8 @@
         {
             path = path.substring(0, path.length() - 1);
         }
-        return path;
+        // normalized path
+        return path.replaceAll("/+", "/");
     }
 
     /**


pal-cvs メーリングリストの案内