Skip to content

Unable to parse absolute Windows path as value of modsecurity.conf directive #3429

@skvoboo-gh

Description

@skvoboo-gh

Describe the bug

Unable to parse absolute Windows path as value of modsecurity.conf directive.
RulesSet::loadFromUri() failed with error message:


Rules error. File: C:\Program Files (x86)\ModSecurity\modsecurity.conf. Line: 3. Column: 59. Invalid input:  SecAuditLog "D:\Data Directory\ModSecurity\logs\audit.log"

To Reproduce

Load modsecurity.conf with content:

SecAuditEngine RelevantOnly
SecAuditLogType Serial
SecAuditLog "D:\Data Directory\ModSecurity\logs\audit.log"

Expected behavior

There are no errors.

Server (please complete the following information):

  • ModSecurity version: ModSecurity v3.0.14
  • OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xRelated to ModSecurity version 3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions