Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_fastcgi_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 | 9e25a5380a21 |
children | 8b68d50090e4 |
comparison
equal
deleted
inserted
replaced
7320:696df3ac27ac | 7321:45e513c3540d |
---|---|
3499 | 3499 |
3500 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); | 3500 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); |
3501 | 3501 |
3502 clcf->handler = ngx_http_fastcgi_handler; | 3502 clcf->handler = ngx_http_fastcgi_handler; |
3503 | 3503 |
3504 if (clcf->name.data[clcf->name.len - 1] == '/') { | 3504 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') { |
3505 clcf->auto_redirect = 1; | 3505 clcf->auto_redirect = 1; |
3506 } | 3506 } |
3507 | 3507 |
3508 value = cf->args->elts; | 3508 value = cf->args->elts; |
3509 | 3509 |