Mercurial > hg > nginx-quic
changeset 7218:e48ac0136ee3
Auth basic: prevent null character in error log (ticket #1494).
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Mon, 26 Feb 2018 16:52:20 +0200 |
parents | 8b70d4caa505 |
children | d0d32b33167d |
files | src/http/modules/ngx_http_auth_basic_module.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_auth_basic_module.c +++ b/src/http/modules/ngx_http_auth_basic_module.c @@ -266,8 +266,8 @@ ngx_http_auth_basic_handler(ngx_http_req } ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, - "user \"%V\" was not found in \"%V\"", - &r->headers_in.user, &user_file); + "user \"%V\" was not found in \"%s\"", + &r->headers_in.user, user_file.data); return ngx_http_auth_basic_set_realm(r, &realm); }