escape internal request URI in proxy_pass

This commit is contained in:
Igor Sysoev 2007-09-09 18:25:03 +00:00
parent 373a10cff1
commit d911dbb292

View 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);
}