We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556e56f commit b4ef9e5Copy full SHA for b4ef9e5
apache2/mod_security2.c
@@ -1286,7 +1286,7 @@ static int hook_log_transaction(request_rec *r) {
1286
1287
msr->r = r;
1288
msr->response_status = r->status;
1289
- msr->status_line = ((r->status_line != NULL)
+ msr->status_line = ((r->status_line != NULL) && (*r->status_line != '\0')
1290
? r->status_line : ap_get_status_line(r->status));
1291
msr->response_protocol = get_response_protocol(origr);
1292
msr->response_headers = apr_table_copy(msr->mp, r->headers_out);
0 commit comments