mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
Don't silently ignore the last line of configuration file that
consists solely of one unterminated token (inspired by #150).
This commit is contained in:
parent
0abb0bce5f
commit
e9a7f4f5f6
@ -465,7 +465,7 @@ ngx_conf_read_token(ngx_conf_t *cf)
|
||||
|
||||
if (cf->conf_file->file.offset >= file_size) {
|
||||
|
||||
if (cf->args->nelts > 0) {
|
||||
if (cf->args->nelts > 0 || !last_space) {
|
||||
|
||||
if (cf->conf_file->file.fd == NGX_INVALID_FILE) {
|
||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user