]> git.kaiwu.me - nginx.git/commitdiff
Access: supplemented the obfuscated code with a comment.
authorRuslan Ermilov <ru@nginx.com>
Wed, 19 Feb 2014 17:45:27 +0000 (21:45 +0400)
committerRuslan Ermilov <ru@nginx.com>
Wed, 19 Feb 2014 17:45:27 +0000 (21:45 +0400)
src/http/modules/ngx_http_access_module.c

index fcee40ca0a0dbbb5cadde56cf63e98e5e164a133..c553e46106b9edb69eb884491908d011e1c16dea 100644 (file)
@@ -259,7 +259,11 @@ ngx_http_access_unix(ngx_http_request_t *r, ngx_http_access_loc_conf_t *alcf)
 
     rule_un = alcf->rules_un->elts;
     for (i = 0; i < alcf->rules_un->nelts; i++) {
-        return ngx_http_access_found(r, rule_un[i].deny);
+
+        /* TODO: check path */
+        if (1) {
+            return ngx_http_access_found(r, rule_un[i].deny);
+        }
     }
 
     return NGX_DECLINED;