Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

This is way of processing of hidden locations is more correct

  • Loading branch information...
commit 125fa2e97399d29ce148f55cc6975268e482d212 1 parent 6a3e6e5
Valery Kholodkov authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 ngx_http_eval_module.c
View
5 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;
Please sign in to comment.
Something went wrong with that request. Please try again.