Mercurial > hg > nginx
comparison src/http/modules/ngx_http_proxy_module.c @ 7321:45e513c3540d
Fixed invalid access to location defined as an empty string.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 17 Jul 2018 15:30:43 +0300 |
parents | 696df3ac27ac |
children | 8b68d50090e4 |
comparison
equal
deleted
inserted
replaced
7320:696df3ac27ac | 7321:45e513c3540d |
---|---|
3578 | 3578 |
3579 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); | 3579 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); |
3580 | 3580 |
3581 clcf->handler = ngx_http_proxy_handler; | 3581 clcf->handler = ngx_http_proxy_handler; |
3582 | 3582 |
3583 if (clcf->name.data[clcf->name.len - 1] == '/') { | 3583 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') { |
3584 clcf->auto_redirect = 1; | 3584 clcf->auto_redirect = 1; |
3585 } | 3585 } |
3586 | 3586 |
3587 value = cf->args->elts; | 3587 value = cf->args->elts; |
3588 | 3588 |