mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 13:42:55 +08:00
escape internal request URI in proxy_pass
This commit is contained in:
parent
fcd9dda633
commit
51082f7f1d
@ -553,7 +553,7 @@ ngx_http_proxy_create_request(ngx_http_request_t *r)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
unparsed_uri = 0;
|
unparsed_uri = 0;
|
||||||
if (r->quoted_uri) {
|
if (r->quoted_uri || r->internal) {
|
||||||
escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len,
|
escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len,
|
||||||
r->uri.len - loc_len, NGX_ESCAPE_URI);
|
r->uri.len - loc_len, NGX_ESCAPE_URI);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user