Removed CGI style HTTP_* variables in favor of REQUEST_HEADERS:Header-Name. (trac #23)

This commit is contained in:
brectanus 2007-03-27 17:18:21 +00:00
parent 485c664a42
commit f6de76b053
2 changed files with 2 additions and 12 deletions

View File

@ -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.

View File

@ -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) {