[pal-cvs 3253] [987] normalized path.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 6月 15日 (日) 07:41:36 JST


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

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

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


-------------- next part --------------
Modified: pal-portal/tags/pal-portal-1.0.5/portal/jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java
===================================================================
--- pal-portal/tags/pal-portal-1.0.5/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)
+++ pal-portal/tags/pal-portal-1.0.5/portal/jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/impl/NodeImpl.java	2008-06-14 22:41:36 UTC (rev 987)
@@ -98,7 +98,8 @@
         {
             path = path.substring(0, path.length() - 1);
         }
-        return path;
+        // normalized path
+        return path.replaceAll("/+", "/");
     }
 
     /**


pal-cvs メーリングリストの案内
Back to archive index