mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix typo and make clearer the intent by using defined(). See #198.
This commit is contained in:
parent
716d0fd419
commit
7c856eef1f
@ -18,7 +18,7 @@
|
||||
#include <apr_optional.h>
|
||||
|
||||
|
||||
#ifdef NO_MODSEC_API
|
||||
#if (!defined(NO_MODSEC_API))
|
||||
/* Optional functions. */
|
||||
|
||||
APR_DECLARE_OPTIONAL_FN(void, modsec_register_tfn, (const char *name, void *fn));
|
||||
|
@ -3,6 +3,9 @@ This directory contains two examples how you can extend
|
||||
ModSecurity without having to touch it directly, simply
|
||||
by creating custom Apache modules.
|
||||
|
||||
NOTE: ModSecurity must be compiled with API support
|
||||
to use this feature (do not use -DNO_MODSEC_API).
|
||||
|
||||
1)
|
||||
|
||||
Module mod_tfn_reverse.c creates a custom transformation
|
||||
|
@ -972,7 +972,7 @@ static void hook_insert_error_filter(request_rec *r) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NO_MODSEC_API
|
||||
#if (!defined(NO_MODSEC_API))
|
||||
/**
|
||||
* This function is exported for other Apache modules to
|
||||
* register new transformation functions.
|
||||
@ -1033,7 +1033,7 @@ static void register_hooks(apr_pool_t *mp) {
|
||||
NULL
|
||||
};
|
||||
|
||||
#ifdef NO_MODSEC_API
|
||||
#if (!defined(NO_MODSEC_API))
|
||||
/* Export optional functions. */
|
||||
APR_REGISTER_OPTIONAL_FN(modsec_register_tfn);
|
||||
APR_REGISTER_OPTIONAL_FN(modsec_register_operator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user