comparison src/http/modules/ngx_http_geo_module.c @ 4963:9f4cdc7a8578

Fixed variable syntax checking in "set", "geo", "limit_conn_zone", and "perl_set" directives.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 13 Dec 2012 15:05:19 +0000
parents f57154322e0e
children a9d60fafaa85
comparison
equal deleted inserted replaced
4962:13a5202b6b4b 4963:9f4cdc7a8578
320 if (geo == NULL) { 320 if (geo == NULL) {
321 return NGX_CONF_ERROR; 321 return NGX_CONF_ERROR;
322 } 322 }
323 323
324 name = value[1]; 324 name = value[1];
325
326 if (name.len < 2 || name.data[0] != '$') {
327 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
328 "invalid variable name \"%V\"", &name);
329 return NGX_CONF_ERROR;
330 }
331
325 name.len--; 332 name.len--;
326 name.data++; 333 name.data++;
327 334
328 if (cf->args->nelts == 3) { 335 if (cf->args->nelts == 3) {
329 336