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-catalina/catalina/src/share/org/apache/catalina/servlets WebdavServlet.java
Date Mon, 06 Oct 2003 08:05:46 GMT
remm        2003/10/06 01:05:46

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        WebdavServlet.java
  Log:
  - Decode and normalize destination path before doing anything else.
  
  Revision  Changes    Path
  1.5       +7 -7      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java
  
  Index: WebdavServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/WebdavServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WebdavServlet.java	2 Sep 2003 21:22:05 -0000	1.4
  +++ WebdavServlet.java	6 Oct 2003 08:05:46 -0000	1.5
  @@ -1488,6 +1488,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
  @@ -1536,9 +1539,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