From: Igor Sysoev Date: Mon, 8 Dec 2008 14:05:21 +0000 (+0000) Subject: skip protected symlinks in autoindex X-Git-Tag: release-0.7.25~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=51fad316cdde730c08008ad775c519fb6aa446ad;p=nginx.git skip protected symlinks in autoindex --- diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c index 86b7c0b30..c8137ad68 100644 --- a/src/http/modules/ngx_http_autoindex_module.c +++ b/src/http/modules/ngx_http_autoindex_module.c @@ -299,6 +299,11 @@ ngx_http_autoindex_handler(ngx_http_request_t *r) if (err != NGX_ENOENT) { ngx_log_error(NGX_LOG_CRIT, r->connection->log, err, ngx_de_info_n " \"%s\" failed", filename); + + if (err == NGX_EACCES) { + continue; + } + return ngx_http_autoindex_error(r, &dir, &path); }