aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-27 12:19:07 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-08-27 12:19:07 +0000
commitc48f49f837ebbdca317363b01c483de3ca0d6080 (patch)
treea0dde26765c00c5a7b0a07b438505e4e6aab2afa /src
parent6d09950cd8b279befa4925f3d9164efc53e63310 (diff)
downloadnginx-c48f49f837ebbdca317363b01c483de3ca0d6080.tar.gz
nginx-c48f49f837ebbdca317363b01c483de3ca0d6080.zip
quoted too long parameter error
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_conf_file.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index fb688007a..b6c94a52f 100644
--- 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;
}