tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets WebdavServlet.java
Date Mon, 06 Oct 2003 12:24:01 GMT
remm        2003/10/06 05:24:01

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        WebdavServlet.java
  Log:
  - Port patch.
  - Fix normalization of the destination path.
  
  Revision  Changes    Path
  1.29      +7 -7      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java
  
  Index: WebdavServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- WebdavServlet.java	1 Apr 2002 18:12:38 -0000	1.28
  +++ WebdavServlet.java	6 Oct 2003 12:24:01 -0000	1.29
  @@ -1509,6 +1509,9 @@
               return false;
           }
   
  +        destinationPath = 
  +            normalize(RequestUtil.URLDecode(destinationPath, "UTF8"));
  +
           int protocolIndex = destinationPath.indexOf("://");
           if (protocolIndex >= 0) {
               // if the Destination URL contains the protocol, we can safely
  @@ -1557,9 +1560,6 @@
                       .substring(servletPath.length());
               }
           }
  -
  -        destinationPath = 
  -            RequestUtil.URLDecode(normalize(destinationPath), "UTF8");
   
           if (debug > 0)
               System.out.println("Dest path :" + destinationPath);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message