mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
escape internal request URI in proxy_pass
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user