Mercurial > hg > nginx
comparison src/http/modules/ngx_http_access_module.c @ 5580:06c227e9edd0
Access: supplemented the obfuscated code with a comment.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 19 Feb 2014 21:45:27 +0400 |
parents | 00dbfac67e48 |
children | 72188d1bcab5 |
comparison
equal
deleted
inserted
replaced
5579:7586e7b2dbe9 | 5580:06c227e9edd0 |
---|---|
257 ngx_uint_t i; | 257 ngx_uint_t i; |
258 ngx_http_access_rule_un_t *rule_un; | 258 ngx_http_access_rule_un_t *rule_un; |
259 | 259 |
260 rule_un = alcf->rules_un->elts; | 260 rule_un = alcf->rules_un->elts; |
261 for (i = 0; i < alcf->rules_un->nelts; i++) { | 261 for (i = 0; i < alcf->rules_un->nelts; i++) { |
262 return ngx_http_access_found(r, rule_un[i].deny); | 262 |
263 /* TODO: check path */ | |
264 if (1) { | |
265 return ngx_http_access_found(r, rule_un[i].deny); | |
266 } | |
263 } | 267 } |
264 | 268 |
265 return NGX_DECLINED; | 269 return NGX_DECLINED; |
266 } | 270 } |
267 | 271 |