Mercurial > hg > nginx
comparison src/http/modules/ngx_http_map_module.c @ 3791:11701c4c0358
use "\" to escape "default", "include", and "hostnames" values instead of "!"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Nov 2010 15:36:24 +0000 |
parents | d8300807c4f3 |
children | 164a7f8df979 |
comparison
equal
deleted
inserted
replaced
3790:d8300807c4f3 | 3791:11701c4c0358 |
---|---|
432 ctx->default_value = var; | 432 ctx->default_value = var; |
433 | 433 |
434 return NGX_CONF_OK; | 434 return NGX_CONF_OK; |
435 } | 435 } |
436 | 436 |
437 if (value[0].len && value[0].data[0] == '!') { | 437 if (value[0].len && value[0].data[0] == '\\') { |
438 value[0].len--; | 438 value[0].len--; |
439 value[0].data++; | 439 value[0].data++; |
440 } | 440 } |
441 | 441 |
442 rc = ngx_hash_add_key(&ctx->keys, &value[0], var, | 442 rc = ngx_hash_add_key(&ctx->keys, &value[0], var, |