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

Commitb3ce3da

Browse files
Elia PintoFelipe Zimmerle
Elia Pinto
authored and
Felipe Zimmerle
committed
mlogc-batch-load.pl.in: fix searching SecAuditLogStorageDir files with Apache 2.4
Setting SecAuditLogType concurrent the files created by modsecurity in the directory SecAuditLogStorageDirare of the type%Y%m%d-%H%M%S-UNIQUE_IDwhere UNIQUE_ID is produced by the module mod_unique_id. In apache 2.2UNIQUE_ID was 24 characters long while in apache 2.4 is 27 characters long,as a result of the new version of mod_unique_id. This patch extendsthe regular expression for searching these log files for apache 2.4 and apache 2.2,and also with future releases, at least with regard to the length of UNIQUE_IDSigned-off-by: Elia Pinto <elia.pinto@gmail.com>
1 parent51f1ff6 commitb3ce3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎mlogc/mlogc-batch-load.pl.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ find(
3838
(($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size) = stat($_)) &&
3939
-f _ &&
4040
#### MODSEC-204 /^\d{8}-\d+-\w{24}$/s
41-
/^\d{8}-\d+-.{24}$/s
41+
/^\d{8}-\d+-.{24,}$/s
4242
&& (($fn = $File::Find::name) =~ s/^\Q$ROOTDIR\E//)
4343
&& push(@AUDIT, [$fn, $size]);
4444
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp