comparison src/http/ngx_http_upstream.c @ 3252:ef8cfb09a50b stable-0.7

merge r3162, r3183: WebDAV fixes: *) check unsafe Destination *) omit '\0' from "Location" header on MKCOL request
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Oct 2009 17:45:55 +0000
parents 8c76116820f3
children 0189a8f4c7c3
comparison
equal deleted inserted replaced
3251:ff7e1ec2c9a4 3252:ef8cfb09a50b
1760 } 1760 }
1761 1761
1762 uri = &u->headers_in.x_accel_redirect->value; 1762 uri = &u->headers_in.x_accel_redirect->value;
1763 args.len = 0; 1763 args.len = 0;
1764 args.data = NULL; 1764 args.data = NULL;
1765 flags = 0; 1765 flags = NGX_HTTP_LOG_UNSAFE;
1766 1766
1767 if (ngx_http_parse_unsafe_uri(r, uri, &args, &flags) != NGX_OK) { 1767 if (ngx_http_parse_unsafe_uri(r, uri, &args, &flags) != NGX_OK) {
1768 ngx_http_finalize_request(r, NGX_HTTP_NOT_FOUND); 1768 ngx_http_finalize_request(r, NGX_HTTP_NOT_FOUND);
1769 return NGX_DONE; 1769 return NGX_DONE;
1770 } 1770 }