Klaus Demo nginx / 372b624
Fixed invalid access to location defined as an empty string. Ruslan Ermilov 3 years ago
6 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
35003500
35013501 clcf->handler = ngx_http_fastcgi_handler;
35023502
3503 if (clcf->name.data[clcf->name.len - 1] == '/') {
3503 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') {
35043504 clcf->auto_redirect = 1;
35053505 }
35063506
45244524
45254525 clcf->handler = ngx_http_grpc_handler;
45264526
4527 if (clcf->name.data[clcf->name.len - 1] == '/') {
4527 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') {
45284528 clcf->auto_redirect = 1;
45294529 }
45304530
706706
707707 clcf->handler = ngx_http_memcached_handler;
708708
709 if (clcf->name.data[clcf->name.len - 1] == '/') {
709 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') {
710710 clcf->auto_redirect = 1;
711711 }
712712
35793579
35803580 clcf->handler = ngx_http_proxy_handler;
35813581
3582 if (clcf->name.data[clcf->name.len - 1] == '/') {
3582 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') {
35833583 clcf->auto_redirect = 1;
35843584 }
35853585
18561856 return NGX_CONF_ERROR;
18571857 }
18581858
1859 if (clcf->name.data[clcf->name.len - 1] == '/') {
1859 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') {
18601860 clcf->auto_redirect = 1;
18611861 }
18621862
21432143 return NGX_CONF_ERROR;
21442144 }
21452145
2146 if (clcf->name.data[clcf->name.len - 1] == '/') {
2146 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') {
21472147 clcf->auto_redirect = 1;
21482148 }
21492149