mirror of
https://github.com/nginx/nginx.git
synced 2024-12-26 17:01:07 -06:00
quoted too long parameter error
This commit is contained in:
parent
6d09950cd8
commit
c48f49f837
@ -482,9 +482,22 @@ ngx_conf_read_token(ngx_conf_t *cf)
|
|||||||
if (len == ngx_pagesize) {
|
if (len == ngx_pagesize) {
|
||||||
cf->conf_file->line = start_line;
|
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,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"too long parameter \"%*s...\" started",
|
"too long parameter, probably "
|
||||||
10, start);
|
"missing terminating \"%c\" character", ch);
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user