Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 1923:c72fe0a8d9b4
fix large memory allocation in "error_page 495-497 /uri"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Mar 2008 14:45:41 +0000 |
parents | dc0f5013f674 |
children | cb8c0c8e0c27 |
comparison
equal
deleted
inserted
replaced
1922:d23396f2a902 | 1923:c72fe0a8d9b4 |
---|---|
3557 "value \"%V\" must be between 400 and 599", | 3557 "value \"%V\" must be between 400 and 599", |
3558 &value[i]); | 3558 &value[i]); |
3559 return NGX_CONF_ERROR; | 3559 return NGX_CONF_ERROR; |
3560 } | 3560 } |
3561 | 3561 |
3562 err->overwrite = (overwrite >= 0) ? overwrite : err->status; | 3562 if (overwrite >= 0) { |
3563 err->overwrite = overwrite; | |
3564 | |
3565 } else { | |
3566 switch (err->status) { | |
3567 case NGX_HTTP_TO_HTTPS: | |
3568 case NGX_HTTPS_CERT_ERROR: | |
3569 case NGX_HTTPS_NO_CERT: | |
3570 err->overwrite = NGX_HTTP_BAD_REQUEST; | |
3571 break; | |
3572 | |
3573 default: | |
3574 err->overwrite = err->status; | |
3575 break; | |
3576 } | |
3577 } | |
3563 | 3578 |
3564 err->uri = uri; | 3579 err->uri = uri; |
3565 err->uri_lengths = uri_lengths; | 3580 err->uri_lengths = uri_lengths; |
3566 err->uri_values = uri_values; | 3581 err->uri_values = uri_values; |
3567 } | 3582 } |