]> git.kaiwu.me - nginx.git/commitdiff
escape internal request URI in proxy_pass
authorIgor Sysoev <igor@sysoev.ru>
Sun, 9 Sep 2007 18:25:03 +0000 (18:25 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 9 Sep 2007 18:25:03 +0000 (18:25 +0000)
src/http/modules/ngx_http_proxy_module.c

index 52f67b3055cdb2474ffd9fcb6f0c486fa0f4c44f..61b934f3276559f70d9a879c06eea1147e2d2db4 100644 (file)
@@ -553,7 +553,7 @@ ngx_http_proxy_create_request(ngx_http_request_t *r)
 
     } else {
         unparsed_uri = 0;
-        if (r->quoted_uri) {
+        if (r->quoted_uri || r->internal) {
             escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len,
                                         r->uri.len - loc_len, NGX_ESCAPE_URI);
         }