Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit76dfc1a

Browse files
dune73Felipe Zimmerle
authored and
Felipe Zimmerle
committed
Fix apache logging limitation by using correct apache call. Apache 2.4 brought the option to change the ErrorLogFormat. However, many fields remain empty, as ModSecurity uses the wrong apache logging function. This fixes this behaviour with the use of ap_log_rerror.
1 parentfecefbe commit76dfc1a

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
@@ -268,7 +268,7 @@ static void internal_log_ex(request_rec *r, directory_config *dcfg, modsec_rec *
268268
elsehostname="";
269269

270270
#ifAP_SERVER_MAJORVERSION_NUMBER>1&&AP_SERVER_MINORVERSION_NUMBER>2
271-
ap_log_error(APLOG_MARK,APLOG_ERR |APLOG_NOERRNO,0,r->server,
271+
ap_log_rerror(APLOG_MARK,APLOG_ERR |APLOG_NOERRNO,0,r,
272272
"[client %s] ModSecurity: %s%s [uri \"%s\"]%s",r->useragent_ip ?r->useragent_ip :r->connection->client_ip,str1,
273273
hostname,log_escape(msr->mp,r->uri),unique_id);
274274
#else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp