Added ability to audit failed request.

Prepare for 2.1.2-rc2.
This commit is contained in:
brectanus
2007-07-19 18:16:51 +00:00
parent 90fc9a2070
commit f15d9e0f23
3 changed files with 14 additions and 2 deletions

View File

@@ -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
visibility attribute.
14 June 2007 - 2.1.2-rc1
------------------------

View File

@@ -687,6 +687,15 @@ static void hook_error_log(const char *file, int line, int level, apr_status_t s
if (r == NULL) return;
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;
/* Store the error message for later */

View File

@@ -48,7 +48,7 @@ typedef struct msc_string msc_string;
#include "http_protocol.h"
#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 PHASE_REQUEST_HEADERS 1