mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Add problematic pattern when DEBUG_CONF is defined
This commit is contained in:
parent
89ff91dae3
commit
ecab91a74e
@ -80,7 +80,11 @@ void *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int options,
|
|||||||
PCRE2_UCHAR buffer[256];
|
PCRE2_UCHAR buffer[256];
|
||||||
// Get the error message from the error code
|
// Get the error message from the error code
|
||||||
pcre2_get_error_message(error_number, buffer, sizeof(buffer));
|
pcre2_get_error_message(error_number, buffer, sizeof(buffer));
|
||||||
|
#ifdef DEBUG_CONF
|
||||||
|
* _errptr = apr_psprintf(pool, "%s - pattern = %s", buffer, pattern);
|
||||||
|
#else
|
||||||
* _errptr = apr_pstrdup(pool, buffer);
|
* _errptr = apr_pstrdup(pool, buffer);
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user