Skip to content

Duplicate Log Message: "(Content-Length) is larger than the configured limit" #1908

@davewichers

Description

@davewichers

This is a minor issue. I'm seeing this log message twice in my ModSecurity 'H' blocks. I believe the cause is in: apache2/mod_security2.c:

line 877 is: msr_log(msr, 1, "Request body (Content-Length) is larger than the "
and lines 993, 996, & 1000 are the same (but only one of those will execute).

Seems like maybe the log event at 877 can simply be deleted since it duplicates what happens later on. Not sure which code block is more important and which can be removed.

I'm using mod_security 2.9.2 and it would be nice if this was fixed in the 2.9.x branch since 3.0 won't be coming out as a production ready release for a while.

Metadata

Metadata

Labels

2.xRelated to ModSecurity version 2.xRIP - Type - UsageRelated with usage (not a bug)enhancementwaiting for v3New feature in v2 that is not yet available in v3. Therefore, not yet released.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions