# HG changeset patch # User Igor Sysoev # Date 1219839547 0 # Node ID 31fda45f696f4b779e1fe0f1c03909fc09ddf138 # Parent d17c487ddb529bade09ad824a82e49f493bc430d quoted too long parameter error diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -482,9 +482,22 @@ ngx_conf_read_token(ngx_conf_t *cf) if (len == ngx_pagesize) { cf->conf_file->line = start_line; + if (d_quoted) { + ch = '"'; + + } else if (s_quoted) { + ch = '\''; + + } else { + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, + "too long parameter \"%*s...\" started", + 10, start); + return NGX_ERROR; + } + ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, - "too long parameter \"%*s...\" started", - 10, start); + "too long parameter, probably " + "missing terminating \"%c\" character", ch); return NGX_ERROR; }