http://nagoya.apache.org/bugzilla/show_bug.cgi?id=623

*** shadow/623  Thu Jul 12 13:30:39 2001
--- shadow/623.tmp.6079 Fri Jul 13 10:48:48 2001
***************
*** 2,9 ****
  | Infinite Loop in org/apache/xerces/utils/URI.java V1.7.0 - the fix cause n |
  +----------------------------------------------------------------------------+
  |        Bug #: 623                         Product: Xerces-J                |
! |       Status: REOPENED                    Version: unspecified             |
! |   Resolution:                            Platform: All                     |
  |     Severity: Major                    OS/Version: All                     |
  |     Priority: High                      Component: Core                    |
  +----------------------------------------------------------------------------+
--- 2,9 ----
  | Infinite Loop in org/apache/xerces/utils/URI.java V1.7.0 - the fix cause n |
  +----------------------------------------------------------------------------+
  |        Bug #: 623                         Product: Xerces-J                |
! |       Status: RESOLVED                    Version: unspecified             |
! |   Resolution: FIXED                      Platform: All                     |
  |     Severity: Major                    OS/Version: All                     |
  |     Priority: High                      Component: Core                    |
  +----------------------------------------------------------------------------+
***************
*** 66,68 ****
--- 66,85 ----
            index += 4;
        }
  // line 525 --------------
+ 
+ 
+ ------- Additional Comments From [EMAIL PROTECTED]  2001-07-13 10:48 -------
+ My new approach. Would it work?
+ 
+       index = 1;
+       int segIndex = -1;
+ 
+       while ((index = path.indexOf("/../", index)) > 0) {
+         segIndex = path.lastIndexOf('/', index-1);
+         if (segIndex != -1 && !path.substring(segIndex+1, index).equals("..")) {
+           path = path.substring(0, segIndex).concat(path.substring(index+3));
+           index = segIndex;
+         } else {
+           index += 4;
+         }
+       }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to