zongaro     2002/07/30 11:00:00

  Modified:    java/src/org/apache/xml/utils SystemIDResolver.java
  Log:
  Applying patches for Morris Kwan for bug 10519.  Changed condition in absoluteURI 
method to handle the case where the URI is the root of a file system - e.g., / or c:\
  
  Revision  Changes    Path
  1.16      +2 -2      xml-xalan/java/src/org/apache/xml/utils/SystemIDResolver.java
  
  Index: SystemIDResolver.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/SystemIDResolver.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SystemIDResolver.java     22 Mar 2002 00:43:41 -0000      1.15
  +++ SystemIDResolver.java     30 Jul 2002 18:00:00 -0000      1.16
  @@ -263,8 +263,8 @@
       // Not so sure if this is good.  But, for now, I'll try it. We really must 
       // make sure the return from this function is a URL!
       if((Character.isLetter(uriStr.charAt(0)) && (uriStr.charAt(1) == ':') 
  -     && (uriStr.charAt(2) == '/') && (uriStr.charAt(3) != '/'))
  -       || ((uriStr.charAt(0) == '/') && (uriStr.charAt(1) != '/')))
  +     && (uriStr.charAt(2) == '/') && (uriStr.length() == 3 || uriStr.charAt(3) != 
'/'))
  +       || ((uriStr.charAt(0) == '/') && (uriStr.length() == 1 || uriStr.charAt(1) 
!= '/')))
       {
        uriStr = "file:///"+uriStr;
       }
  
  
  

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

Reply via email to