From 3362b8df048ad32b6dd286b37e792f661bb894ea Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 14 May 2005 18:42:03 +0000 Subject: nginx-0.1.30-RELEASE import *) Bugfix: the worker process may got caught in an endless loop if the SSI was used. *) Bugfix: the response encrypted by SSL may not transferred complete. *) Bugfix: if the length of the response part received at once from proxied or FastCGI server was equal to 500, then nginx returns the 500 response code; in proxy mode the the bug had appeared in 0.1.29 only. *) Bugfix: nginx did not consider the directives with 8 or 9 parameters as invalid. *) Feature: the "return" directive can return the 204 response code. *) Feature: the "ignore_invalid_headers" directive. --- src/core/nginx.h | 2 +- src/core/ngx_conf_file.c | 2 +- src/core/ngx_conf_file.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/nginx.h b/src/core/nginx.h index 4d27a875f..dc1e14337 100644 --- a/src/core/nginx.h +++ b/src/core/nginx.h @@ -8,7 +8,7 @@ #define _NGINX_H_INCLUDED_ -#define NGINX_VER "nginx/0.1.29" +#define NGINX_VER "nginx/0.1.30" #define NGINX_VAR "NGINX" #define NGX_NEWPID_EXT ".newbin" diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index b9b2200bf..42143bd2c 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -263,7 +263,7 @@ ngx_conf_handler(ngx_conf_t *cf, ngx_int_t last) valid = 0; } - } else if (cf->args->nelts <= 10 + } else if (cf->args->nelts <= NGX_CONF_MAX_ARGS && (cmd->type & argument_number[cf->args->nelts - 1])) { diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h index 899f046e8..1f4e72cee 100644 --- a/src/core/ngx_conf_file.h +++ b/src/core/ngx_conf_file.h @@ -27,6 +27,8 @@ #define NGX_CONF_TAKE6 0x00000040 #define NGX_CONF_TAKE7 0x00000080 +#define NGX_CONF_MAX_ARGS 8 + #define NGX_CONF_TAKE12 (NGX_CONF_TAKE1|NGX_CONF_TAKE2) #define NGX_CONF_TAKE13 (NGX_CONF_TAKE1|NGX_CONF_TAKE3) -- cgit