Fixed faulty REQUEST_FILENAME.

This commit is contained in:
ivanr 2007-03-01 12:17:17 +00:00
parent f4fb4ed4f6
commit 8aeff06fc2
3 changed files with 7 additions and 13 deletions

View File

@ -1,10 +1,11 @@
?? ??? 2007 - ?????
-------------------
01 Mar 2007 - 2.1.1-dev1
------------------------
* Fixed the date on the 2.1.0 release from 2006 to 2007 below.
* Fixed the faulty REQUEST_FILENAME variable, which used to change
the internal Apache structures by mistake.
* Fixed some casting issues for compiling on NetWare (patch from Guenter_Knauf).
* Fixed some casting issues for compiling on NetWare (patch from Guenter Knauf).
* Updates to quiet some compiler warnings.

View File

@ -50,7 +50,7 @@ typedef struct msc_string msc_string;
#include "http_protocol.h"
#define MODULE_NAME "ModSecurity"
#define MODULE_RELEASE "2.1.0"
#define MODULE_RELEASE "2.1.1-dev1"
#define MODULE_NAME_FULL (MODULE_NAME " v" MODULE_RELEASE " (Apache 2.x)")
#define PHASE_REQUEST_HEADERS 1

View File

@ -1359,14 +1359,7 @@ static int var_request_headers_names_generate(modsec_rec *msr, msre_var *var, ms
static int var_request_filename_generate(modsec_rec *msr, msre_var *var, msre_rule *rule,
apr_table_t *vartab, apr_pool_t *mptmp)
{
char *value = msr->r->parsed_uri.path;
if (value != NULL) {
int invalid_count = 0;
urldecode_nonstrict_inplace_ex((unsigned char *)value, strlen(value), &invalid_count);
}
return var_simple_generate(var, vartab, mptmp, value);
return var_simple_generate(var, vartab, mptmp, msr->r->parsed_uri.path);
}
/* REQUEST_LINE */