jericho     2003/01/26 20:44:30

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
  Log:
  - Fix to be encoded double possbily...
  
  Reported by Joseph Artsimovich <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.100     +13 -5     
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
  
  Index: HttpMethodBase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
  retrieving revision 1.99
  retrieving revision 1.100
  diff -u -r1.99 -r1.100
  --- HttpMethodBase.java       25 Jan 2003 22:52:16 -0000      1.99
  +++ HttpMethodBase.java       27 Jan 2003 04:44:30 -0000      1.100
  @@ -277,7 +277,15 @@
               if (uri == null || uri.equals( "" )) {
                   uri = "/";
               }
  -            URI parsedURI = new URI( uri );
  +
  +            URI parsedURI;
  +            try {
  +                // for an escaped form on communication functions
  +                parsedURI = new URI(uri.toCharArray());
  +            } catch (URIException urie) {
  +                // it is supposed that an URI is sent not to be escaped
  +                parsedURI = new URI(uri);
  +            }
   
               // only set the host if specified by the URI
               if ( parsedURI.isAbsoluteURI() ) {
  
  
  

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

Reply via email to