Skip to content

Commit

Permalink
removed the code that modifies subrequests' r->uri because it's very …
Browse files Browse the repository at this point in the history
…buggy and may produce crashes.
  • Loading branch information
agentzh committed Mar 28, 2010
1 parent ac4ab36 commit f9825f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ngx_http_eval_module.c
Expand Up @@ -153,11 +153,11 @@ ngx_module_t ngx_http_eval_module = {
static ngx_int_t static ngx_int_t
ngx_http_eval_handler(ngx_http_request_t *r) ngx_http_eval_handler(ngx_http_request_t *r)
{ {
size_t loc_len; /* size_t loc_len; */
ngx_str_t args; ngx_str_t args;
ngx_str_t subrequest_uri; ngx_str_t subrequest_uri;
ngx_uint_t flags; ngx_uint_t flags;
ngx_http_core_loc_conf_t *clcf; /* ngx_http_core_loc_conf_t *clcf; */
ngx_http_eval_loc_conf_t *ecf; ngx_http_eval_loc_conf_t *ecf;
ngx_http_eval_ctx_t *ctx; ngx_http_eval_ctx_t *ctx;
ngx_http_eval_ctx_t *sr_ctx; ngx_http_eval_ctx_t *sr_ctx;
Expand All @@ -166,6 +166,7 @@ ngx_http_eval_handler(ngx_http_request_t *r)
ngx_http_post_subrequest_t *psr; ngx_http_post_subrequest_t *psr;
u_char *p; u_char *p;


/*
if(r != r->main) { if(r != r->main) {
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
Expand All @@ -179,6 +180,7 @@ ngx_http_eval_handler(ngx_http_request_t *r)
r->uri.len = 1; r->uri.len = 1;
} }
} }
*/


ecf = ngx_http_get_module_loc_conf(r, ngx_http_eval_module); ecf = ngx_http_get_module_loc_conf(r, ngx_http_eval_module);


Expand Down

0 comments on commit f9825f5

Please sign in to comment.