mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-10 02:04:36 +03:00
Added ability to audit failed request.
Prepare for 2.1.2-rc2.
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -1,9 +1,12 @@
|
|||||||
?? ???? 2007 - 2.1.2-rc2
|
19 July 2007 - 2.1.2-rc2
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
* Added ability to alert/audit failed requests.
|
||||||
|
|
||||||
* Added Cygwin to the list of platforms not supporting the hidden
|
* Added Cygwin to the list of platforms not supporting the hidden
|
||||||
visibility attribute.
|
visibility attribute.
|
||||||
|
|
||||||
|
|
||||||
14 June 2007 - 2.1.2-rc1
|
14 June 2007 - 2.1.2-rc1
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -687,6 +687,15 @@ static void hook_error_log(const char *file, int line, int level, apr_status_t s
|
|||||||
|
|
||||||
if (r == NULL) return;
|
if (r == NULL) return;
|
||||||
msr = retrieve_tx_context((request_rec *)r);
|
msr = retrieve_tx_context((request_rec *)r);
|
||||||
|
|
||||||
|
/* Create a context for requests we never had the chance to process */
|
||||||
|
/* TODO: This needs more testing */
|
||||||
|
if (level & APLOG_ERR) {
|
||||||
|
if (msr == NULL && apr_table_get(r->subprocess_env, "UNIQUE_ID")) {
|
||||||
|
msr = create_tx_context((request_rec *)r);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (msr == NULL) return;
|
if (msr == NULL) return;
|
||||||
|
|
||||||
/* Store the error message for later */
|
/* Store the error message for later */
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ typedef struct msc_string msc_string;
|
|||||||
#include "http_protocol.h"
|
#include "http_protocol.h"
|
||||||
|
|
||||||
#define MODULE_NAME "ModSecurity"
|
#define MODULE_NAME "ModSecurity"
|
||||||
#define MODULE_RELEASE "2.1.2-rc1"
|
#define MODULE_RELEASE "2.1.2-rc2"
|
||||||
#define MODULE_NAME_FULL (MODULE_NAME " v" MODULE_RELEASE " (Apache 2.x)")
|
#define MODULE_NAME_FULL (MODULE_NAME " v" MODULE_RELEASE " (Apache 2.x)")
|
||||||
|
|
||||||
#define PHASE_REQUEST_HEADERS 1
|
#define PHASE_REQUEST_HEADERS 1
|
||||||
|
|||||||
Reference in New Issue
Block a user