You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sa...@apache.org on 2002/05/10 18:30:10 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/util URI.java

sandygao    02/05/10 09:30:10

  Modified:    java/src/org/apache/xerces/util URI.java
  Log:
  Add '[' and ']' to reserved characters; remove ' ' from mark characters.
  
  Revision  Changes    Path
  1.6       +5 -3      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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- URI.java	7 Feb 2002 18:39:01 -0000	1.5
  +++ URI.java	10 May 2002 16:30:10 -0000	1.6
  @@ -88,7 +88,7 @@
   * default port for a specific scheme). Rather, it only knows the
   * grammar and basic set of operations that can be applied to a URI.
   *
  -* @version  $Id: URI.java,v 1.5 2002/02/07 18:39:01 sandygao Exp $
  +* @version  $Id: URI.java,v 1.6 2002/05/10 16:30:10 sandygao Exp $
   *
   **********************************************************************/
    public class URI implements Serializable {
  @@ -121,11 +121,13 @@
     }
   
     /** reserved characters */
  -  private static final String RESERVED_CHARACTERS = ";/?:@&=+$,";
  +  //RFC 2732 added '[' and ']' as reserved characters
  +  //private static final String RESERVED_CHARACTERS = ";/?:@&=+$,";
  +  private static final String RESERVED_CHARACTERS = ";/?:@&=+$,[]";
   
     /** URI punctuation mark characters - these, combined with
         alphanumerics, constitute the "unreserved" characters */
  -  private static final String MARK_CHARACTERS = "-_.!~*'() ";
  +  private static final String MARK_CHARACTERS = "-_.!~*'()";
   
     /** scheme can be composed of alphanumerics and these characters */
     private static final String SCHEME_CHARACTERS = "+-.";
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org