Mercurial > hg > nginx
changeset 1466:943f2ba615cd
escape internal request URI in proxy_pass
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 09 Sep 2007 18:25:03 +0000 |
parents | a9132739bb57 |
children | e5352b711c47 |
files | src/http/modules/ngx_http_proxy_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c Sun Sep 09 18:23:21 2007 +0000 +++ b/src/http/modules/ngx_http_proxy_module.c Sun Sep 09 18:25:03 2007 +0000 @@ -553,7 +553,7 @@ } 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); }