mrglavas    2003/07/24 18:49:57

  Modified:    java/src/org/apache/xerces/util URI.java
  Log:
  Fix a problem when searching for the port boundary.
  Do not accept any index before the beginning of the host.
  
  Made some Javadoc corrections as well.
  
  Revision  Changes    Path
  1.12      +4 -4      xml-xerces/java/src/org/apache/xerces/util/URI.java
  
  Index: URI.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/util/URI.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- URI.java  19 Jul 2003 05:06:02 -0000      1.11
  +++ URI.java  25 Jul 2003 01:49:56 -0000      1.12
  @@ -743,7 +743,7 @@
         }
         else {
                int colonIndex = p_uriSpec.lastIndexOf(':', end);
  -             index = (colonIndex != -1) ? colonIndex : end;
  +             index = (colonIndex > start) ? colonIndex : end;
                hasPort = (index != end);
         }
       }
  @@ -1559,9 +1559,9 @@
      *
      * <p><code>IPv6reference = "[" IPv6address "]"</code></p>
      *
  -   * <p>Note: The BNF expressed in RFC 2732 Appendix B does not 
  +   * <p>Note: The BNF expressed in RFC 2373 Appendix B does not 
      * accurately describe section 2.2, and was in fact removed from
  -   * RFC 3513, the successor of RFC 2732.</p>
  +   * RFC 3513, the successor of RFC 2373.</p>
      *
      * @return true if the string is a syntactically valid IPv6 reference
      */
  
  
  

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

Reply via email to