mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Fixed faulty REQUEST_FILENAME.
This commit is contained in:
parent
f4fb4ed4f6
commit
8aeff06fc2
9
CHANGES
9
CHANGES
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user