[nginx] Dav: emit a warning about unsafe URI.

Ruslan Ermilov ru at nginx.com
Mon Dec 23 14:12:46 UTC 2013


details:   http://hg.nginx.org/nginx/rev/5c52ff68f380
branches:  
changeset: 5492:5c52ff68f380
user:      Ruslan Ermilov <ru at nginx.com>
date:      Mon Dec 23 18:12:03 2013 +0400
description:
Dav: emit a warning about unsafe URI.

diffstat:

 src/http/modules/ngx_http_dav_module.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 74bfa803a5aa -r 5c52ff68f380 src/http/modules/ngx_http_dav_module.c
--- a/src/http/modules/ngx_http_dav_module.c	Mon Dec 23 18:12:00 2013 +0400
+++ b/src/http/modules/ngx_http_dav_module.c	Mon Dec 23 18:12:03 2013 +0400
@@ -604,7 +604,7 @@ destination_done:
 
     duri.len = last - p;
     duri.data = p;
-    flags = 0;
+    flags = NGX_HTTP_LOG_UNSAFE;
 
     if (ngx_http_parse_unsafe_uri(r, &duri, &args, &flags) != NGX_OK) {
         goto invalid_destination;



More information about the nginx-devel mailing list