You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by je...@apache.org on 2002/04/29 17:19:05 UTC

cvs commit: jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient URIUtil.java

jericho     02/04/29 08:19:05

  Modified:    src/webdav/client/src/org/apache/commons/httpclient
                        URIUtil.java
  Log:
  - It doesn't need to consider of MIME type encoding on a URI.
     And the JDK package will be used for MIME type encoding.
  - Patched by Bernd Eilers <Be...@Sun.COM>
  
  P.S.: It's really for the internal httpclient version in Slide.
  
  Revision  Changes    Path
  1.4       +5 -7      jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/URIUtil.java
  
  Index: URIUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/URIUtil.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- URIUtil.java	25 Apr 2002 21:15:13 -0000	1.3
  +++ URIUtil.java	29 Apr 2002 15:19:05 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/URIUtil.java,v 1.3 2002/04/25 21:15:13 jericho Exp $
  - * $Revision: 1.3 $
  - * $Date: 2002/04/25 21:15:13 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/URIUtil.java,v 1.4 2002/04/29 15:19:05 jericho Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/04/29 15:19:05 $
    *
    * ====================================================================
    *
  @@ -82,7 +82,7 @@
    * @author Tim Tye
    * @author Remy Maucherat
    * @author Park, Sung-Gu
  - * @version $Revision: 1.3 $ $Date: 2002/04/25 21:15:13 $
  + * @version $Revision: 1.4 $ $Date: 2002/04/29 15:19:05 $
    * @see <a href=http://www.ietf.org/rfc/rfc2396.txt?number=2396>RFC 2396</a>
    */
   
  @@ -361,9 +361,7 @@
           int ox = off;
           while (ix < end) {
               byte b = bytes[ix++];     // Get byte to test
  -            if (b == '+') {
  -                b = (byte) ' ';
  -            } else if (b == '%') {
  +            if ((b == '%') && (ix+2 < len)) {
                   b = (byte) ((convertHexDigit(bytes[ix++]) << 4)
                               + convertHexDigit(bytes[ix++]));
               }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>