mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Removed CGI style HTTP_* variables in favor of REQUEST_HEADERS:Header-Name. (trac #23)
This commit is contained in:
parent
485c664a42
commit
f6de76b053
2
CHANGES
2
CHANGES
@ -2,6 +2,8 @@
|
||||
21 Mar 2007 - trunk
|
||||
-------------------
|
||||
|
||||
* Removed CGI style HTTP_* variables in favor of REQUEST_HEADERS:Header-Name.
|
||||
|
||||
* Store filename/line for each rule and display it and the ID (if available)
|
||||
in the debug log when invoking a rule. Thanks to Christian Bockermann
|
||||
for the idea.
|
||||
|
12
apache2/re.c
12
apache2/re.c
@ -144,18 +144,6 @@ msre_var *msre_create_var_ex(apr_pool_t *pool, msre_engine *engine, const char *
|
||||
var->name = name;
|
||||
}
|
||||
|
||||
/* CGI HTTP variables emulation. */
|
||||
if (strncasecmp(var->name, "HTTP_", 5) == 0) {
|
||||
if (var->param != NULL) {
|
||||
*error_msg = apr_psprintf(pool, "Variable %s does not support parameters.",
|
||||
var->name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
var->param = var->name + 5;
|
||||
var->name = "REQUEST_HEADERS";
|
||||
}
|
||||
|
||||
/* Resolve variable */
|
||||
var->metadata = msre_resolve_var(engine, var->name);
|
||||
if (var->metadata == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user