Skip to content

Commit 7ed0c30

Browse files
committed
Fixed MODSEC-364
1 parent 18e0c45 commit 7ed0c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/apache2_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static void internal_log_ex(request_rec *r, directory_config *dcfg, modsec_rec *
265265

266266
#if AP_SERVER_MAJORVERSION_NUMBER > 1 && AP_SERVER_MINORVERSION_NUMBER > 2
267267
ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r->server,
268-
"[client %s] ModSecurity: %s%s [uri \"%s\"]%s", r->connection->client_ip, str1,
268+
"[client %s] ModSecurity: %s%s [uri \"%s\"]%s", r->useragent_ip ? r->useragent_ip : r->connection->client_ip, str1,
269269
hostname, log_escape(msr->mp, r->uri), unique_id);
270270
#else
271271
ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r->server,

0 commit comments

Comments
 (0)