Syslog: allowed underscore symbol in tag (ticket #667).

This commit is contained in:
Vladimir Homutov 2014-11-20 20:02:21 +03:00
parent ef563debf1
commit 742b5dd045

View File

@ -182,10 +182,11 @@ ngx_syslog_parse_args(ngx_conf_t *cf, ngx_syslog_peer_t *peer)
for (i = 4; i < len; i++) {
c = ngx_tolower(p[i]);
if (c < '0' || (c > '9' && c < 'a') || c > 'z') {
if (c < '0' || (c > '9' && c < 'a' && c != '_') || c > 'z') {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"syslog \"tag\" only allows "
"alphanumeric characters");
"alphanumeric characters "
"and underscore");
return NGX_CONF_ERROR;
}
}