Permalink
Browse files

This is way of processing of hidden locations is more correct

  • Loading branch information...
1 parent 6a3e6e5 commit 125fa2e97399d29ce148f55cc6975268e482d212 Valery Kholodkov committed Nov 26, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 ngx_http_eval_module.c
@@ -141,7 +141,10 @@ ngx_http_eval_handler(ngx_http_request_t *r)
ngx_http_eval_block_t *block;
u_char *p;
- if(r != r->main && ngx_memn2cmp(r->uri.data, (u_char*)"/eval_", r->uri.len, sizeof("/eval_") - 1) == 0) {
+ if(r != r->main && r->uri.len > 6 && r->uri.data[0] == '/' && r->uri.data[1] == 'e'
+ && r->uri.data[2] == 'v' && r->uri.data[3] == 'a' && r->uri.data[4] == 'l'
+ && r->uri.data[5] == '_')
+ {
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
loc_len = r->valid_location ? clcf->name.len : 0;

0 comments on commit 125fa2e

Please sign in to comment.