httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1476621 - in /httpd/httpd/trunk: CHANGES modules/dav/main/mod_dav.c
Date Sat, 27 Apr 2013 16:55:44 GMT
Author: minfrin
Date: Sat Apr 27 16:55:44 2013
New Revision: 1476621

URL: http://svn.apache.org/r1476621
Log:
mod_dav: Ensure URI is correctly uriencoded on return. PR 54611
Patch submitted by Timothy Wood <tjw omnigroup com>
Tested by William Lewis <wiml omnigroup com>

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/modules/dav/main/mod_dav.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1476621&r1=1476620&r2=1476621&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Sat Apr 27 16:55:44 2013
@@ -1,8 +1,11 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_dav: Ensure URI is correctly uriencoded on return. PR 54611
+     [Timothy Wood <tjw omnigroup.com>]
+
   *) mod_dav: Sending a If or If-Match header with an invalid ETag doesn't
-     result in a 412 Precondition Failed. PR54610 [Timothy Wood
+     result in a 412 Precondition Failed. PR 54610 [Timothy Wood
      <tjw omnigroup.com>]
 
   *) mod_dav: Make sure that when we prepare an If URL for Etag comparison,

Modified: httpd/httpd/trunk/modules/dav/main/mod_dav.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/dav/main/mod_dav.c?rev=1476621&r1=1476620&r2=1476621&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/dav/main/mod_dav.c (original)
+++ httpd/httpd/trunk/modules/dav/main/mod_dav.c Sat Apr 27 16:55:44 2013
@@ -611,7 +611,9 @@ static int dav_created(request_rec *r, c
     const char *body;
 
     if (locn == NULL) {
-        locn = r->uri;
+        locn = r->unparsed_uri;
+    } else {
+        locn = ap_escape_uri(r->pool, locn);
     }
 
     /* did the target resource already exist? */



Mime
View raw message