comparison src/core/ngx_conf_file.c @ 2217:31fda45f696f

quoted too long parameter error
author Igor Sysoev <igor@sysoev.ru>
date Wed, 27 Aug 2008 12:19:07 +0000
parents d17c487ddb52
children d200fbe9aa81
comparison
equal deleted inserted replaced
2216:d17c487ddb52 2217:31fda45f696f
480 len = b->pos - start; 480 len = b->pos - start;
481 481
482 if (len == ngx_pagesize) { 482 if (len == ngx_pagesize) {
483 cf->conf_file->line = start_line; 483 cf->conf_file->line = start_line;
484 484
485 if (d_quoted) {
486 ch = '"';
487
488 } else if (s_quoted) {
489 ch = '\'';
490
491 } else {
492 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
493 "too long parameter \"%*s...\" started",
494 10, start);
495 return NGX_ERROR;
496 }
497
485 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 498 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
486 "too long parameter \"%*s...\" started", 499 "too long parameter, probably "
487 10, start); 500 "missing terminating \"%c\" character", ch);
488 return NGX_ERROR; 501 return NGX_ERROR;
489 } 502 }
490 503
491 if (len) { 504 if (len) {
492 ngx_memcpy(b->start, start, len); 505 ngx_memcpy(b->start, start, len);