| commit | f53294103b534d6979700158be18bdf17267f6d0 | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Mon Oct 01 12:57:47 2007 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Mon Oct 01 12:57:47 2007 +0000 |
| tree | 86fda3ec84f9172bcaca471c9f81ca5e25861407 | |
| parent | 06af5df77fdec9e7f8b8f9c5a8c57b03b1a2cc36 [diff] [blame] |
pass length clearly
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 57f4083..0956f01 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c
@@ -2636,7 +2636,7 @@ if (r->upstream->rewrite_redirect) { - p = ngx_strcasestrn(ho->value.data, "url=", 3); + p = ngx_strcasestrn(ho->value.data, "url=", 4 - 1); if (p) { rc = r->upstream->rewrite_redirect(r, ho, p + 4 - ho->value.data);