mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 06:37:58 +08:00
Auth basic: prevent null character in error log (ticket #1494).
This commit is contained in:
parent
dd7dba520c
commit
f607032e0c
@ -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…
Reference in New Issue
Block a user