Skip to content

Commit 4998eb4

Browse files
Fabricio OliveiraFelipe Zimmerle
authored andcommitted
Fix missing status_line when logging in nginx.
1 parent fff0749 commit 4998eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/mod_security2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ static int hook_log_transaction(request_rec *r) {
12781278

12791279
msr->r = r;
12801280
msr->response_status = r->status;
1281-
msr->status_line = ((r->status_line != NULL)
1281+
msr->status_line = ((r->status_line != NULL) && (*r->status_line != '\0')
12821282
? r->status_line : ap_get_status_line(r->status));
12831283
msr->response_protocol = get_response_protocol(origr);
12841284
msr->response_headers = apr_table_copy(msr->mp, r->headers_out);

0 commit comments

Comments
 (0)