Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_proxy_module.c @ 1525:d916a5d7de28 stable-0.5
r1467 merge:
escape internal request URI in proxy_pass
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 23 Sep 2007 19:19:14 +0000 |
parents | 840b81d13a2f |
children | 44bd4db45b30 |
comparison
equal
deleted
inserted
replaced
1524:81fa2dadc124 | 1525:d916a5d7de28 |
---|---|
551 unparsed_uri = 1; | 551 unparsed_uri = 1; |
552 len += r->unparsed_uri.len; | 552 len += r->unparsed_uri.len; |
553 | 553 |
554 } else { | 554 } else { |
555 unparsed_uri = 0; | 555 unparsed_uri = 0; |
556 if (r->quoted_uri) { | 556 if (r->quoted_uri || r->internal) { |
557 escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len, | 557 escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len, |
558 r->uri.len - loc_len, NGX_ESCAPE_URI); | 558 r->uri.len - loc_len, NGX_ESCAPE_URI); |
559 } | 559 } |
560 | 560 |
561 len += r->uri.len - loc_len + escape + sizeof("?") - 1 + r->args.len; | 561 len += r->uri.len - loc_len + escape + sizeof("?") - 1 + r->args.len; |