mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 12:01:09 +00:00
Auth basic: prevent null character in error log (ticket #1494).
This commit is contained in:
parent
dd7dba520c
commit
f607032e0c
1 changed files with 2 additions and 2 deletions
|
|
@ -266,8 +266,8 @@ ngx_http_auth_basic_handler(ngx_http_request_t *r)
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue