diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-09-09 18:25:03 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-09 18:25:03 +0000 |
commit | 51082f7f1de50a85a74ee721de381f3ef593a53a (patch) | |
tree | bdadd8953e3857c38dd050ede59aff0c72cf1f84 /src | |
parent | fcd9dda6333ba5696c4b9b6656c09ae10d2faf35 (diff) | |
download | nginx-51082f7f1de50a85a74ee721de381f3ef593a53a.tar.gz nginx-51082f7f1de50a85a74ee721de381f3ef593a53a.zip |
escape internal request URI in proxy_pass
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 52f67b305..61b934f32 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -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); } |