comparison src/http/modules/ngx_http_split_clients_module.c @ 4972:8b635cf36ccc

Added checks that disallow adding a variable with an empty name. Added variable name syntax checks to "geo" and "map" directives.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 17 Dec 2012 19:03:33 +0000
parents 9c9fbdbe9383
children b78cf2414fda
comparison
equal deleted inserted replaced
4971:eaf95350d75c 4972:8b635cf36ccc
137 return NGX_CONF_ERROR; 137 return NGX_CONF_ERROR;
138 } 138 }
139 139
140 name = value[2]; 140 name = value[2];
141 141
142 if (name.len < 2 || name.data[0] != '$') { 142 if (name.data[0] != '$') {
143 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 143 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
144 "invalid variable name \"%V\"", &name); 144 "invalid variable name \"%V\"", &name);
145 return NGX_CONF_ERROR; 145 return NGX_CONF_ERROR;
146 } 146 }
147 147