mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Added ALLOW_ID_NOT_UNIQUE compile flag to allow duplicate rule ids and no id
This commit is contained in:
committed by
Felipe Zimmerle
parent
bb577950bf
commit
7ff0e7e7b2
16
configure.ac
16
configure.ac
@@ -411,6 +411,22 @@ AC_ARG_ENABLE(request-early,
|
||||
request_early='-DREQUEST_EARLY'
|
||||
])
|
||||
|
||||
# Enable duplicate rules id
|
||||
AC_ARG_ENABLE(rule-id-validation,
|
||||
AS_HELP_STRING([--enable-rule-id-validation],
|
||||
[Forbid duplicate rule ids and missing ones. This is the default]),
|
||||
[
|
||||
if test "$enableval" != "no"; then
|
||||
unique_id=
|
||||
else
|
||||
unique_id="-DALLOW_ID_NOT_UNIQUE"
|
||||
MODSEC_EXTRA_CFLAGS="$MODSEC_EXTRA_CFLAGS $unique_id"
|
||||
fi
|
||||
],
|
||||
[
|
||||
unique_id=''
|
||||
])
|
||||
|
||||
# Ignore configure errors
|
||||
AC_ARG_ENABLE(errors,
|
||||
AS_HELP_STRING([--disable-errors],
|
||||
|
Reference in New Issue
Block a user