Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 3122:3e994ac670dc
test space between "~" and regex in server_name and invalid_referers
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 14 Sep 2009 09:48:48 +0000 |
parents | 1c4fcfe57af1 |
children | a7637c2c1157 |
comparison
equal
deleted
inserted
replaced
3121:bd2573c97e4a | 3122:3e994ac670dc |
---|---|
3549 #if (NGX_PCRE) | 3549 #if (NGX_PCRE) |
3550 { | 3550 { |
3551 ngx_str_t err; | 3551 ngx_str_t err; |
3552 u_char errstr[NGX_MAX_CONF_ERRSTR]; | 3552 u_char errstr[NGX_MAX_CONF_ERRSTR]; |
3553 | 3553 |
3554 if (value[i].len == 1) { | |
3555 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | |
3556 "empty regex in server name \"%V\"", &value[i]); | |
3557 return NGX_CONF_ERROR; | |
3558 } | |
3559 | |
3554 err.len = NGX_MAX_CONF_ERRSTR; | 3560 err.len = NGX_MAX_CONF_ERRSTR; |
3555 err.data = errstr; | 3561 err.data = errstr; |
3556 | 3562 |
3557 value[i].len--; | 3563 value[i].len--; |
3558 value[i].data++; | 3564 value[i].data++; |